stdlib: add some parameter defaults (#14610)

This commit is contained in:
Jelle Zijlstra
2025-08-21 00:17:33 -07:00
committed by GitHub
parent 310c161af7
commit 02a4b07b54
14 changed files with 30 additions and 22 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ class Path(PurePath):
def link_to(self, target: StrOrBytesPath) -> None: ...
if sys.version_info >= (3, 12):
def walk(
self, top_down: bool = ..., on_error: Callable[[OSError], object] | None = ..., follow_symlinks: bool = ...
self, top_down: bool = True, on_error: Callable[[OSError], object] | None = None, follow_symlinks: bool = False
) -> Iterator[tuple[Self, list[str], list[str]]]: ...
class PosixPath(Path, PurePosixPath): ...