mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
GH-104898: Add __slots__ to os.PathLike (GH-104899)
This commit is contained in:
parent
fea8632ec6
commit
bd1b6228d1
4 changed files with 10 additions and 5 deletions
|
@ -1079,6 +1079,8 @@ class PathLike(abc.ABC):
|
|||
|
||||
"""Abstract base class for implementing the file system path protocol."""
|
||||
|
||||
__slots__ = ()
|
||||
|
||||
@abc.abstractmethod
|
||||
def __fspath__(self):
|
||||
"""Return the file system path representation of the object."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue