We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8adedaf commit 32dab78Copy full SHA for 32dab78
domdf_python_tools/paths.py
@@ -361,7 +361,12 @@ class PathPlus(pathlib.Path):
361
.. versionchanged:: 0.5.1 Defaults to Unix line endings (``LF``) on all platforms.
362
"""
363
364
- __slots__ = ("_accessor", )
+ __slots__ = ()
365
+ _accessor = pathlib._normal_accessor # type: ignore
366
+ _closed = False
367
+
368
+ def _init(self, *args, **kwargs):
369
+ pass
370
371
def __new__(cls, *args, **kwargs): # noqa D102
372
if cls is PathPlus:
@@ -746,7 +751,7 @@ def unlink(self, missing_ok: bool = False) -> None:
746
751
747
752
748
753
try:
749
- self._accessor.unlink(self) # type: ignore
754
+ self._accessor.unlink(self)
750
755
except FileNotFoundError:
756
if not missing_ok:
757
raise
0 commit comments