File tree 2 files changed +7
-3
lines changed
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
7
7
flake8-pyi==24.6.0 # must match .pre-commit-config.yaml
8
8
mypy==1.10.1
9
9
pre-commit-hooks==4.6.0 # must match .pre-commit-config.yaml
10
- pyright==1.1.372
10
+ pyright==1.1.373
11
11
pytype==2024.4.11; platform_system != "Windows" and python_version < "3.12"
12
12
ruff==0.5.4 # must match .pre-commit-config.yaml
13
13
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class PurePath(PathLike[str]):
49
49
def stem (self ) -> str : ...
50
50
if sys .version_info >= (3 , 12 ):
51
51
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]
53
53
else :
54
54
def __new__ (cls , * args : StrPath ) -> Self : ...
55
55
@@ -101,7 +101,11 @@ class PurePosixPath(PurePath): ...
101
101
class PureWindowsPath (PurePath ): ...
102
102
103
103
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
+
105
109
@classmethod
106
110
def cwd (cls ) -> Self : ...
107
111
if sys .version_info >= (3 , 10 ):
You can’t perform that action at this time.
0 commit comments