Update pyright to 1.1.372 (#12427)

This commit is contained in:
Sebastian Rittau
2024-07-25 14:32:11 +02:00
committed by GitHub
parent 2aeb777cde
commit ddb9163e7d
2 changed files with 7 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ flake8-noqa==1.4.0 # must match .pre-commit-config.yaml
flake8-pyi==24.6.0 # must match .pre-commit-config.yaml
mypy==1.10.1
pre-commit-hooks==4.6.0 # must match .pre-commit-config.yaml
pyright==1.1.372
pyright==1.1.373
pytype==2024.4.11; platform_system != "Windows" and python_version < "3.12"
ruff==0.5.4 # must match .pre-commit-config.yaml

View File

@@ -49,7 +49,7 @@ class PurePath(PathLike[str]):
def stem(self) -> str: ...
if sys.version_info >= (3, 12):
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
def __init__(self, *args: StrPath) -> None: ...
def __init__(self, *args: StrPath) -> None: ... # pyright: ignore[reportInconsistentConstructor]
else:
def __new__(cls, *args: StrPath) -> Self: ...
@@ -101,7 +101,11 @@ class PurePosixPath(PurePath): ...
class PureWindowsPath(PurePath): ...
class Path(PurePath):
def __new__(cls, *args: StrPath, **kwargs: Any) -> Self: ...
if sys.version_info >= (3, 12):
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ... # pyright: ignore[reportInconsistentConstructor]
else:
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
@classmethod
def cwd(cls) -> Self: ...
if sys.version_info >= (3, 10):