Skip to content

Commit ddb9163

Browse files
authored
Update pyright to 1.1.372 (#12427)
1 parent 2aeb777 commit ddb9163

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: requirements-tests.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ flake8-noqa==1.4.0 # must match .pre-commit-config.yaml
77
flake8-pyi==24.6.0 # must match .pre-commit-config.yaml
88
mypy==1.10.1
99
pre-commit-hooks==4.6.0 # must match .pre-commit-config.yaml
10-
pyright==1.1.372
10+
pyright==1.1.373
1111
pytype==2024.4.11; platform_system != "Windows" and python_version < "3.12"
1212
ruff==0.5.4 # must match .pre-commit-config.yaml
1313

Diff for: stdlib/pathlib.pyi

+6-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PurePath(PathLike[str]):
4949
def stem(self) -> str: ...
5050
if sys.version_info >= (3, 12):
5151
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
52-
def __init__(self, *args: StrPath) -> None: ...
52+
def __init__(self, *args: StrPath) -> None: ... # pyright: ignore[reportInconsistentConstructor]
5353
else:
5454
def __new__(cls, *args: StrPath) -> Self: ...
5555

@@ -101,7 +101,11 @@ class PurePosixPath(PurePath): ...
101101
class PureWindowsPath(PurePath): ...
102102

103103
class Path(PurePath):
104-
def __new__(cls, *args: StrPath, **kwargs: Any) -> Self: ...
104+
if sys.version_info >= (3, 12):
105+
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ... # pyright: ignore[reportInconsistentConstructor]
106+
else:
107+
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
108+
105109
@classmethod
106110
def cwd(cls) -> Self: ...
107111
if sys.version_info >= (3, 10):

0 commit comments

Comments
 (0)