We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21b884 commit b004c2dCopy full SHA for b004c2d
1 file changed
Lib/pathlib/types.py
@@ -305,7 +305,7 @@ def walk(
305
top_down: bool = True,
306
on_error: Optional[Callable[[Exception], None]] = None,
307
follow_symlinks: bool = False,
308
- ) -> Generator[tuple[Self, list[str], list[str]]]:
+ ) -> Iterator[tuple[Self, list[str], list[str]]]:
309
"""Walk the directory tree from this directory, similar to os.walk()."""
310
paths = [self]
311
while paths:
0 commit comments