From 8db375c3a96441ac94dc6e1aec9a0b1e61cc7763 Mon Sep 17 00:00:00 2001 From: Victor Westerhuis Date: Thu, 13 Apr 2023 13:42:26 +0200 Subject: [PATCH] Fix target argument of pathlib.Path.{sym,hard}link_to (#10019) --- stdlib/pathlib.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/pathlib.pyi b/stdlib/pathlib.pyi index 114678ed5..7aec66b58 100644 --- a/stdlib/pathlib.pyi +++ b/stdlib/pathlib.pyi @@ -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):