mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-13 15:31:54 +08:00
add _SupportsIndex to py2 xrange and py3 range (#4929)
This commit is contained in:
@@ -788,7 +788,7 @@ class xrange(Sized, Iterable[int], Reversible[int]):
|
||||
def __init__(self, start: int, stop: int, step: int = ...) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[int]: ...
|
||||
def __getitem__(self, i: int) -> int: ...
|
||||
def __getitem__(self, i: _SupportsIndex) -> int: ...
|
||||
def __reversed__(self) -> Iterator[int]: ...
|
||||
|
||||
class property(object):
|
||||
|
||||
Reference in New Issue
Block a user