mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Second param of islice allows None. (#1603)
This commit is contained in:
committed by
Matthias Kramm
parent
8ab207bcee
commit
b4e89a078c
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user