summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-05-25 20:24:20 (GMT)
committerGitHub <noreply@github.com>2023-05-25 20:24:20 (GMT)
commitbd1b6228d132b8e9836fe352cd8dca2b6c1bd98c (patch)
tree42df193dad2436c36c67ca3c4ce5235e5eca8845 /Lib/os.py
parentfea8632ec69d160a11b8ec506900c14989952bc1 (diff)
downloadcpython-bd1b6228d132b8e9836fe352cd8dca2b6c1bd98c.zip
cpython-bd1b6228d132b8e9836fe352cd8dca2b6c1bd98c.tar.gz
cpython-bd1b6228d132b8e9836fe352cd8dca2b6c1bd98c.tar.bz2
GH-104898: Add __slots__ to os.PathLike (GH-104899)
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 598c9e5..31b957f 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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."""