From ce1871a5bb5b260a28d1ad86acea3c4142d767dd Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 13 Apr 2021 22:43:20 -0400 Subject: [PATCH] importlib.abc: Traversable takes a path (#5214) --- stdlib/importlib/abc.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/importlib/abc.pyi b/stdlib/importlib/abc.pyi index dff64f8c8..8915b2859 100644 --- a/stdlib/importlib/abc.pyi +++ b/stdlib/importlib/abc.pyi @@ -88,9 +88,9 @@ if sys.version_info >= (3, 9): @abstractmethod def is_file(self) -> bool: ... @abstractmethod - def joinpath(self, child: Traversable) -> Traversable: ... + def joinpath(self, child: _Path) -> Traversable: ... @abstractmethod - def __truediv__(self, child: Traversable) -> Traversable: ... + def __truediv__(self, child: _Path) -> Traversable: ... @abstractmethod def open(self, mode: Literal["r", "rb"] = ..., *args: Any, **kwargs: Any) -> IO[Any]: ... @property