Skip to content

Commit cae97e2

Browse files
committed
path: __truediv__, __div__, join: returns local
1 parent c396811 commit cae97e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/path.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class local:
6565
def __gt__(self, other: object) -> bool: ...
6666
def __add__(self, other: object) -> local: ...
6767
def __cmp__(self, other: object) -> int: ...
68-
def __div__(self, other: _PathType): ...
69-
def __truediv__(self, other: _PathType): ...
68+
def __div__(self, other: _PathType) -> local: ...
69+
def __truediv__(self, other: _PathType) -> local: ...
7070
def __fspath__(self) -> str: ...
7171

7272
@classmethod
@@ -132,7 +132,7 @@ class local:
132132
def isdir(self) -> bool: ...
133133
def isfile(self) -> bool: ...
134134
def islink(self) -> bool: ...
135-
def join(self, *args: _PathType, abs: int = ...) -> Any: ...
135+
def join(self, *args: _PathType, abs: int = ...) -> local: ...
136136
def listdir(
137137
self,
138138
fil: Optional[Union[str, Text, Callable[[local], bool]]] = ...,

0 commit comments

Comments
 (0)