GH-104898: Add __slots__ to os.PathLike (GH-104899)

This commit is contained in:
Barney Gale 2023-05-25 21:24:20 +01:00 committed by GitHub
parent fea8632ec6
commit bd1b6228d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 5 deletions

View file

@ -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."""