Skip to content

Commit 6c8a32e

Browse files
committed
refactor: use internal stgpytools
1 parent 7bcff88 commit 6c8a32e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vstools/stgpytools/types/file.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ class SPath(Path):
6161

6262
if TYPE_CHECKING:
6363
def __new__(cls, *args: SPathLike, **kwargs: Any) -> SPath:
64-
...
64+
pass
65+
66+
else:
67+
def __new__(cls, *args: SPathLike, **kwargs: Any) -> Any:
68+
return super().__new__(cls, *args, **kwargs)
6569

6670
def format(self, *args: Any, **kwargs: Any) -> SPath:
6771
"""Format the path with the given arguments."""

0 commit comments

Comments
 (0)