From e504437801546d38853e8d3244b65bd0c36068d3 Mon Sep 17 00:00:00 2001 From: Joseph Young <80432516+jpy-git@users.noreply.github.com> Date: Thu, 6 Jan 2022 16:22:31 +0000 Subject: [PATCH] Use StrOrBytesPath in shutil.rmtree (#6835) --- stdlib/shutil.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/shutil.pyi b/stdlib/shutil.pyi index bd733f7fd..d2bc50ecd 100644 --- a/stdlib/shutil.pyi +++ b/stdlib/shutil.pyi @@ -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]]