File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -307,9 +307,11 @@ class PathPlus(pathlib.Path):
307
307
def __new__ (cls , * args , ** kwargs ):
308
308
if cls is PathPlus :
309
309
cls = WindowsPathPlus if os .name == 'nt' else PosixPathPlus
310
+
310
311
self = cls ._from_parts (args , init = False ) # type: ignore
311
312
if not self ._flavour .is_supported :
312
313
raise NotImplementedError (f"cannot instantiate { cls .__name__ !r} on your system" )
314
+
313
315
self ._init ()
314
316
return self
315
317
@@ -569,7 +571,8 @@ def load_json(
569
571
570
572
571
573
class PosixPathPlus (PathPlus , pathlib .PurePosixPath ):
572
- """Path subclass for non-Windows systems.
574
+ """
575
+ PathPlus subclass for non-Windows systems.
573
576
574
577
On a POSIX system, instantiating a PathPlus object should return an instance of this class.
575
578
@@ -579,7 +582,8 @@ class PosixPathPlus(PathPlus, pathlib.PurePosixPath):
579
582
580
583
581
584
class WindowsPathPlus (PathPlus , pathlib .PureWindowsPath ):
582
- """Path subclass for Windows systems.
585
+ """
586
+ PathPlus subclass for Windows systems.
583
587
584
588
On a Windows system, instantiating a PathPlus object should return an instance of this class.
585
589
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ changedir = {toxinidir}
114
114
deps =
115
115
mypy ==0.782
116
116
-r{toxinidir}/tests/requirements.txt
117
- commands = mypy domdf_python_tools tests
117
+ commands = mypy domdf_python_tools tests {posargs}
118
118
119
119
120
120
You can’t perform that action at this time.
0 commit comments