Skip to content

Commit

Permalink
Fix iterdir - it also accepts match. Ref #220.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 4, 2024
1 parent 10f4426 commit a9bbe15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/220.bugfix.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix iterdir - it also accepts match. Ref #220.
2 changes: 1 addition & 1 deletion path/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Path(str):
def relpath(self: Self, start: str = ...) -> Self: ...
def relpathto(self: Self, dest: str) -> Self: ...
# --- Listing, searching, walking, and matching
def iterdir(self: Self) -> Iterator[Self]: ...
def iterdir(self: Self, match: _Match = ...) -> Iterator[Self]: ...
def listdir(self: Self, match: _Match = ...) -> List[Self]: ...
def dirs(self: Self, match: _Match = ...) -> List[Self]: ...
def files(self: Self, match: _Match = ...) -> List[Self]: ...
Expand Down

0 comments on commit a9bbe15

Please sign in to comment.