mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add start and stop arguments to Sequence.index in Py >= 3.5 (#489)
Fixes #486.
This commit is contained in:
committed by
Greg Price
parent
ff86b1bd26
commit
9451fa922c
@@ -446,7 +446,10 @@ class tuple(Sequence[_T_co], Generic[_T_co]):
|
||||
def __mul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
||||
def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
||||
def count(self, x: Any) -> int: ...
|
||||
def index(self, x: Any) -> int: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def index(self, x: Any, start: int = 0, end: int = 0) -> int: ...
|
||||
else:
|
||||
def index(self, x: Any) -> int: ...
|
||||
|
||||
class function:
|
||||
# TODO not defined in builtins!
|
||||
|
||||
Reference in New Issue
Block a user