Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0e5a00b

Browse files
authoredJan 8, 2022
Add a comment explaining why shutil.move doesn't allow bytes/Pathlike[bytes] args (#6832)
1 parent 28a5e6b commit 0e5a00b

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
@@ -48,6 +48,9 @@ def rmtree(path: StrOrBytesPath, ignore_errors: bool = ..., onerror: Callable[[A
4848

4949
_CopyFn = Union[Callable[[str, str], None], Callable[[StrPath, StrPath], None]]
5050

51+
# N.B. shutil.move appears to take bytes arguments, however,
52+
# this does not work when dst is (or is within) an existing directory.
53+
# (#6832)
5154
if sys.version_info >= (3, 9):
5255
def move(src: StrPath, dst: StrPath, copy_function: _CopyFn = ...) -> _PathReturn: ...
5356

0 commit comments

Comments
 (0)
Please sign in to comment.