Skip to content

Commit 1a83727

Browse files
Add signature for pathlib.Path.rmtree() (#12474)
1 parent 17af889 commit 1a83727

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/pathlib.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ class Path(PurePath):
266266
self, top_down: bool = ..., on_error: Callable[[OSError], object] | None = ..., follow_symlinks: bool = ...
267267
) -> Iterator[tuple[Self, list[str], list[str]]]: ...
268268

269+
if sys.version_info >= (3, 14):
270+
def rmtree(self, ignore_errors: bool = False, on_error: Callable[[OSError], object] | None = None) -> None: ...
271+
269272
class PosixPath(Path, PurePosixPath): ...
270273
class WindowsPath(Path, PureWindowsPath): ...
271274

0 commit comments

Comments
 (0)