mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 22:11:54 +08:00
Update pyright to 1.1.372 (#12427)
This commit is contained in:
@@ -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