Ouch. The itertools.chain situation is slightly more complicated.

This commit is contained in:
Guido van Rossum
2016-04-07 15:34:45 -07:00
parent 17e74036f5
commit dca8eeb1fe
2 changed files with 6 additions and 2 deletions

View File

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