Use StrOrBytesPath in shutil.rmtree (#6835)

This commit is contained in:
Joseph Young
2022-01-06 16:22:31 +00:00
committed by GitHub
parent eee7f71f23
commit e504437801

View File

@@ -44,7 +44,7 @@ else:
ignore_dangling_symlinks: bool = ...,
) -> _PathReturn: ...
def rmtree(path: bytes | StrPath, ignore_errors: bool = ..., onerror: Callable[[Any, Any, Any], Any] | None = ...) -> None: ...
def rmtree(path: StrOrBytesPath, ignore_errors: bool = ..., onerror: Callable[[Any, Any, Any], Any] | None = ...) -> None: ...
_CopyFn = Union[Callable[[str, str], None], Callable[[StrPath, StrPath], None]]