itertools.islice allows step=None (#2142)

This commit is contained in:
Zac Hatfield-Dodds authored and Jelle Zijlstra committed 2018-05-17 09:35:02 -04:00
1 parent f4d19d9f61
commit d5929ada4d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ def groupby(iterable: Iterable[_T],
def islice(iterable: Iterable[_T], stop: Optional[int]) -> Iterator[_T]: ...
@overload
def islice(iterable: Iterable[_T], start: Optional[int], stop: Optional[int],
step: int = ...) -> Iterator[_T]: ...
step: Optional[int] = ...) -> Iterator[_T]: ...
def starmap(func: Callable[..., _S], iterable: Iterable[Iterable[Any]]) -> Iterator[_S]: ...
def takewhile(predicate: Callable[[_T], Any],