importlib.abc: Traversable takes a path (#5214)

This commit is contained in:
Henry Schreiner
2021-04-13 22:43:20 -04:00
committed by GitHub
parent f89cff3bf8
commit ce1871a5bb

View File

@@ -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