add _SupportsIndex to py2 xrange and py3 range (#4929)

This commit is contained in:
Akuli
2021-01-15 20:14:42 +02:00
committed by GitHub
parent c3854d26f6
commit 09f400ab4a
3 changed files with 5 additions and 5 deletions

View File

@@ -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):