mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add a comment explaining why shutil.move doesn't allow bytes/Pathlike[bytes] args (#6832)
This commit is contained in:
@@ -48,6 +48,9 @@ def rmtree(path: StrOrBytesPath, ignore_errors: bool = ..., onerror: Callable[[A
|
||||
|
||||
_CopyFn = Union[Callable[[str, str], None], Callable[[StrPath, StrPath], None]]
|
||||
|
||||
# N.B. shutil.move appears to take bytes arguments, however,
|
||||
# this does not work when dst is (or is within) an existing directory.
|
||||
# (#6832)
|
||||
if sys.version_info >= (3, 9):
|
||||
def move(src: StrPath, dst: StrPath, copy_function: _CopyFn = ...) -> _PathReturn: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user