mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Fix target argument of pathlib.Path.{sym,hard}link_to (#10019)
This commit is contained in:
committed by
GitHub
parent
03ca80bb61
commit
8db375c3a9
@@ -173,9 +173,9 @@ class Path(PurePath):
|
||||
def resolve(self, strict: bool = False) -> Self: ...
|
||||
def rglob(self, pattern: str) -> Generator[Self, None, None]: ...
|
||||
def rmdir(self) -> None: ...
|
||||
def symlink_to(self, target: str | Path, target_is_directory: bool = False) -> None: ...
|
||||
def symlink_to(self, target: StrOrBytesPath, target_is_directory: bool = False) -> None: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def hardlink_to(self, target: str | Path) -> None: ...
|
||||
def hardlink_to(self, target: StrOrBytesPath) -> None: ...
|
||||
|
||||
def touch(self, mode: int = 0o666, exist_ok: bool = True) -> None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
|
||||
Reference in New Issue
Block a user