Second param of islice allows None. (#1603)

This commit is contained in:
David Novakovic
2017-09-21 07:55:16 +10:00
committed by Matthias Kramm
parent 8ab207bcee
commit b4e89a078c

View File

@@ -40,7 +40,7 @@ def groupby(iterable: Iterable[_T],
@overload
def islice(iterable: Iterable[_T], stop: int) -> Iterator[_T]: ...
@overload
def islice(iterable: Iterable[_T], start: int, stop: Optional[int],
def islice(iterable: Iterable[_T], start: Optional[int], stop: Optional[int],
step: int = ...) -> Iterator[_T]: ...
_T1 = TypeVar('_T1')