Skip to content

Commit

Permalink
Add type annotation for iterdir.
Browse files Browse the repository at this point in the history
Closes #215.
  • Loading branch information
jaraco committed Apr 4, 2024
1 parent 4c5f9c8 commit 9c40557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions newsfragments/215.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add type annotation for iterdir.
1 change: 1 addition & 0 deletions path/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +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 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 9c40557

Please sign in to comment.