Fix target argument of pathlib.Path.{sym,hard}link_to (#10019)

This commit is contained in:
Victor Westerhuis
2023-04-13 13:42:26 +02:00
committed by GitHub
parent 03ca80bb61
commit 8db375c3a9

View File

@@ -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):