Skip to content

Commit 9192c36

Browse files
ZeroIntensitymax-muoto
authored andcommitted
Add signature for pathlib.Path.rmtree() (python#12474)
1 parent 7c317c1 commit 9192c36

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎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)