range.index() takes exactly one argument (#3668)

This commit is contained in:
Ilaï Deutel
2020-01-27 20:19:12 -08:00
committed by Jelle Zijlstra
parent 64fea9c543
commit e7ddb21ae6
2 changed files with 2 additions and 2 deletions

View File

@@ -1090,7 +1090,7 @@ if sys.version_info >= (3,):
@overload
def __init__(self, start: int, stop: int, step: int = ...) -> None: ...
def count(self, value: int) -> int: ...
def index(self, value: int, start: int = ..., stop: Optional[int] = ...) -> int: ...
def index(self, value: int) -> int: ... # type: ignore
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[int]: ...