Skip to content

Commit 3da86c9

Browse files
committed
Set __slots__ for PathPlus
1 parent 9cf8529 commit 3da86c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

domdf_python_tools/paths.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ class PathPlus(pathlib.Path):
316316
Defaults to Unix line endings (``LF``) on all platforms.
317317
"""
318318

319+
__slots__ = ('_accessor', )
320+
319321
def __new__(cls, *args, **kwargs): # noqa D102
320322
if cls is PathPlus:
321323
cls = WindowsPathPlus if os.name == "nt" else PosixPathPlus

0 commit comments

Comments
 (0)