mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Ouch. The itertools.chain situation is slightly more complicated.
This commit is contained in:
@@ -21,8 +21,10 @@ def accumulate(iterable: Iterable[_T]) -> Iterator[_T]: ...
|
||||
|
||||
class chain(Iterator[_T], Generic[_T]):
|
||||
def __init__(self, *iterables: Iterable[_T]) -> None: ...
|
||||
def __next__(self) -> _T: ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
@staticmethod
|
||||
def from_iterable(iterable: Iterable[Iterable[_T]]) -> Iterator[_T]: ...
|
||||
def from_iterable(iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...
|
||||
|
||||
def compress(data: Iterable[_T], selectors: Iterable[Any]) -> Iterator[_T]: ...
|
||||
def dropwhile(predicate: Callable[[_T], Any],
|
||||
|
||||
Reference in New Issue
Block a user