mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
importlib.abc: Traversable takes a path (#5214)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user