Skip to content

Commit b119ff2

Browse files
authored
Fix shutil.copy2 stub (#6875)
1 parent 5d20635 commit b119ff2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/shutil.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def copystat(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool
2424
def copy(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...
2525
@overload
2626
def copy(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...
27+
@overload
2728
def copy2(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...
29+
@overload
30+
def copy2(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...
2831
def ignore_patterns(*patterns: StrPath) -> Callable[[Any, list[str]], set[str]]: ...
2932

3033
if sys.version_info >= (3, 8):

0 commit comments

Comments
 (0)