mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 04:34:33 +08:00
itertools.islice allows step=None (#2142)
This commit is contained in:
1 parent
f4d19d9f61
commit
d5929ada4d
2 files changed
+2
-2
No files matched your search
@@ -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