mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-07 20:13:23 +08:00
Add missing method 'indices' in 'slice' builtin (#1007)
This commit is contained in:
committed by
Łukasz Langa
parent
349ff59f33
commit
da6d4314d3
@@ -525,6 +525,7 @@ class slice:
|
||||
def __init__(self, stop: Optional[int]) -> None: ...
|
||||
@overload
|
||||
def __init__(self, start: Optional[int], stop: Optional[int], step: int = None) -> None: ...
|
||||
def indices(self, len: int) -> Tuple[int, int, int]: ...
|
||||
|
||||
class tuple(Sequence[_T_co], Generic[_T_co]):
|
||||
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user