Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00039ee

Browse files
authored
array: update for py310 (#5294)
Co-authored-by: hauntsaninja <>
1 parent ae60825 commit 00039ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

stdlib/array.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class array(MutableSequence[_T], Generic[_T]):
3333
def fromfile(self, __f: BinaryIO, __n: int) -> None: ...
3434
def fromlist(self, __list: List[_T]) -> None: ...
3535
def fromunicode(self, __ustr: str) -> None: ...
36-
def index(self, __v: _T) -> int: ... # type: ignore # Overrides Sequence
36+
if sys.version_info >= (3, 10):
37+
def index(self, __v: _T, __start: int = ..., __stop: int = ...) -> int: ...
38+
else:
39+
def index(self, __v: _T) -> int: ... # type: ignore # Overrides Sequence
3740
def insert(self, __i: int, __v: _T) -> None: ...
3841
def pop(self, __i: int = ...) -> _T: ...
3942
if sys.version_info < (3,):

0 commit comments

Comments
 (0)