mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
itertools.islice allows step=None (#2142)
This commit is contained in:
committed by
Jelle Zijlstra
parent
f4d19d9f61
commit
d5929ada4d
@@ -41,7 +41,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]: ...
|
||||
|
||||
_T1 = TypeVar('_T1')
|
||||
_T2 = TypeVar('_T2')
|
||||
|
||||
Reference in New Issue
Block a user