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]]