mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Add return type for pathlib.Path.replace on Python >= 3.8 (#3936)
This commit is contained in:
3
third_party/2/pathlib2.pyi
vendored
3
third_party/2/pathlib2.pyi
vendored
@@ -99,9 +99,10 @@ class Path(PurePath):
|
||||
def owner(self) -> str: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def rename(self: _P, target: Union[str, PurePath]) -> _P: ...
|
||||
def replace(self: _P, target: Union[str, PurePath]) -> _P: ...
|
||||
else:
|
||||
def rename(self, target: Union[str, PurePath]) -> None: ...
|
||||
def replace(self, target: Union[str, PurePath]) -> None: ...
|
||||
def replace(self, target: Union[str, PurePath]) -> None: ...
|
||||
if sys.version_info < (3, 6):
|
||||
def resolve(self: _P) -> _P: ...
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user