mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 03:22:32 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -59,7 +59,7 @@ class PurePath(PathLike[str]):
|
||||
def is_absolute(self) -> bool: ...
|
||||
def is_reserved(self) -> bool: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def is_relative_to(self, __other: StrPath, *_deprecated: StrPath) -> bool: ...
|
||||
def is_relative_to(self, other: StrPath, /, *_deprecated: StrPath) -> bool: ...
|
||||
elif sys.version_info >= (3, 9):
|
||||
def is_relative_to(self, *other: StrPath) -> bool: ...
|
||||
|
||||
@@ -69,7 +69,7 @@ class PurePath(PathLike[str]):
|
||||
def match(self, path_pattern: str) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
def relative_to(self, __other: StrPath, *_deprecated: StrPath, walk_up: bool = False) -> Self: ...
|
||||
def relative_to(self, other: StrPath, /, *_deprecated: StrPath, walk_up: bool = False) -> Self: ...
|
||||
else:
|
||||
def relative_to(self, *other: StrPath) -> Self: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user