Add signature for pathlib.Path.rmtree() (#12474)

This commit is contained in:
Peter Bierma
2024-08-02 12:14:08 -04:00
committed by GitHub
parent 17af88919f
commit 1a83727723

View File

@@ -266,6 +266,9 @@ class Path(PurePath):
self, top_down: bool = ..., on_error: Callable[[OSError], object] | None = ..., follow_symlinks: bool = ...
) -> Iterator[tuple[Self, list[str], list[str]]]: ...
if sys.version_info >= (3, 14):
def rmtree(self, ignore_errors: bool = False, on_error: Callable[[OSError], object] | None = None) -> None: ...
class PosixPath(Path, PurePosixPath): ...
class WindowsPath(Path, PureWindowsPath): ...