mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use TypeVar for pkgutil.extend_path (#7473)
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
from _typeshed import SupportsRead
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, Union
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, TypeVar, Union
|
||||
|
||||
Loader = Any
|
||||
MetaPathFinder = Any
|
||||
PathEntryFinder = Any
|
||||
|
||||
_PathT = TypeVar("_PathT", bound=Iterable[str])
|
||||
_ModuleInfoLike = tuple[Union[MetaPathFinder, PathEntryFinder], str, bool]
|
||||
|
||||
def extend_path(path: list[str], name: str) -> list[str]: ...
|
||||
def extend_path(path: _PathT, name: str) -> _PathT: ...
|
||||
|
||||
class ImpImporter:
|
||||
def __init__(self, path: str | None = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user