mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Update pyright to 1.1.372 (#12427)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user