From b119ff2717ebc005ced830c353b5f477563dcf18 Mon Sep 17 00:00:00 2001 From: Joseph Young <80432516+jpy-git@users.noreply.github.com> Date: Sat, 15 Jan 2022 23:20:08 +0000 Subject: [PATCH] Fix shutil.copy2 stub (#6875) --- stdlib/shutil.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/shutil.pyi b/stdlib/shutil.pyi index 572e50a06..67a81e60f 100644 --- a/stdlib/shutil.pyi +++ b/stdlib/shutil.pyi @@ -24,7 +24,10 @@ def copystat(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool def copy(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ... @overload def copy(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = ...) -> _PathReturn: ... +@overload def copy2(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ... +@overload +def copy2(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = ...) -> _PathReturn: ... def ignore_patterns(*patterns: StrPath) -> Callable[[Any, list[str]], set[str]]: ... if sys.version_info >= (3, 8):