mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
range.index() takes exactly one argument (#3668)
This commit is contained in:
committed by
Jelle Zijlstra
parent
64fea9c543
commit
e7ddb21ae6
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user