Skip to content
Merged
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
barneygale and picnixz authored Dec 3, 2024
commit 59201c3709494eca2621fc01f5cff24b36896121
9 changes: 5 additions & 4 deletions Lib/pathlib/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class Parser(Protocol):

sep: str
Comment thread
barneygale marked this conversation as resolved.
def join(self, path: str, *paths: str) -> str: ...
def split(self, path: str) -> (str, str): ...
def splitdrive(self, path: str) -> (str, str): ...
def splitext(self, path: str) -> (str, str): ...
def split(self, path: str) -> tuple[str, str]: ...
def splitdrive(self, path: str) -> tuple[str, str]: ...
def splitext(self, path: str) -> tuple[str, str]: ...
def normcase(self, path: str) -> str: ...
def isabs(self, path: str) -> bool: ...

Expand Down Expand Up @@ -47,7 +47,8 @@ class StatResult(Protocol):
files.

Stat results provide a subset of the os.stat_result API, specifically
attributes for the file type, permissions and offset."""
attributes for the file type, permissions and offset.
"""

st_mode: int
st_ino: int
Expand Down