File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ flake8-noqa==1.4.0 # must match .pre-commit-config.yaml
77flake8-pyi==24.6.0 # must match .pre-commit-config.yaml
88mypy==1.10.1
99pre-commit-hooks==4.6.0 # must match .pre-commit-config.yaml
10- pyright==1.1.372
10+ pyright==1.1.373
1111pytype==2024.4.11; platform_system != "Windows" and python_version < "3.12"
1212ruff==0.5.4 # must match .pre-commit-config.yaml
1313
Original file line number Diff line number Diff 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): ...
101101class PureWindowsPath (PurePath ): ...
102102
103103class 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 ):
You can’t perform that action at this time.
0 commit comments