Remove fallback again

This commit is contained in:
Günther Noack
2017-03-20 21:38:16 +01:00
committed by GitHub
parent 4149a2637b
commit b621b2f5ff

View File

@@ -84,9 +84,8 @@ def izip(iter1: Iterable[_T1], iter2: Iterable[_T2],
iter3: Iterable[_T3], iter4: Iterable[_T4],
iter5: Iterable[_T5], iter6: Iterable[_T6]) -> Iterator[Tuple[_T1, _T2, _T3,
_T4, _T5, _T6]]: ...
@overload
def izip(*iter: Iterable[Any]) -> Iterator[tuple]: ...
# TODO izip loses type information for 6 arguments and more
# TODO more than 6 iterables
# TODO should have a fallback for the n-ary variant
def izip_longest(*p: Iterable[Any],
fillvalue: Any = ...) -> Iterator[Any]: ...