Skip to content

Commit

Permalink
Add note about string arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Nov 26, 2023
1 parent a9eeaf4 commit 73777f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ class _PurePathBase:
This class *does not* provide several magic methods that are defined in
its subclass PurePath. They are: __fspath__, __bytes__, __reduce__,
__hash__, __eq__, __lt__, __le__, __gt__, __ge__.
__hash__, __eq__, __lt__, __le__, __gt__, __ge__. Its initializer and path
joining accepts only strings, and not os.PathLike objects more broadly.
"""

__slots__ = (
Expand Down

0 comments on commit 73777f2

Please sign in to comment.