Skip to content

Commit ce1871a

Browse files
authored
importlib.abc: Traversable takes a path (#5214)
1 parent f89cff3 commit ce1871a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/importlib/abc.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ if sys.version_info >= (3, 9):
8888
@abstractmethod
8989
def is_file(self) -> bool: ...
9090
@abstractmethod
91-
def joinpath(self, child: Traversable) -> Traversable: ...
91+
def joinpath(self, child: _Path) -> Traversable: ...
9292
@abstractmethod
93-
def __truediv__(self, child: Traversable) -> Traversable: ...
93+
def __truediv__(self, child: _Path) -> Traversable: ...
9494
@abstractmethod
9595
def open(self, mode: Literal["r", "rb"] = ..., *args: Any, **kwargs: Any) -> IO[Any]: ...
9696
@property

0 commit comments

Comments
 (0)