diff --git a/stdlib/pathlib.pyi b/stdlib/pathlib.pyi index 116bf6431..fd05c937d 100644 --- a/stdlib/pathlib.pyi +++ b/stdlib/pathlib.pyi @@ -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): ...