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):
307307 def __new__ (cls , * args , ** kwargs ):
308308 if cls is PathPlus :
309309 cls = WindowsPathPlus if os .name == 'nt' else PosixPathPlus
310+
310311 self = cls ._from_parts (args , init = False ) # type: ignore
311312 if not self ._flavour .is_supported :
312313 raise NotImplementedError (f"cannot instantiate { cls .__name__ !r} on your system" )
314+
313315 self ._init ()
314316 return self
315317
@@ -569,7 +571,8 @@ def load_json(
569571
570572
571573class PosixPathPlus (PathPlus , pathlib .PurePosixPath ):
572- """Path subclass for non-Windows systems.
574+ """
575+ PathPlus subclass for non-Windows systems.
573576
574577 On a POSIX system, instantiating a PathPlus object should return an instance of this class.
575578
@@ -579,7 +582,8 @@ class PosixPathPlus(PathPlus, pathlib.PurePosixPath):
579582
580583
581584class WindowsPathPlus (PathPlus , pathlib .PureWindowsPath ):
582- """Path subclass for Windows systems.
585+ """
586+ PathPlus subclass for Windows systems.
583587
584588 On a Windows system, instantiating a PathPlus object should return an instance of this class.
585589
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ changedir = {toxinidir}
114114deps =
115115 mypy ==0.782
116116 -r{toxinidir}/tests/requirements.txt
117- commands = mypy domdf_python_tools tests
117+ commands = mypy domdf_python_tools tests {posargs}
118118
119119
120120
You can’t perform that action at this time.
0 commit comments