array: update for py310 (#5294)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-05-02 12:32:29 -07:00
committed by GitHub
parent ae60825818
commit 00039ee354

View File

@@ -33,7 +33,10 @@ class array(MutableSequence[_T], Generic[_T]):
def fromfile(self, __f: BinaryIO, __n: int) -> None: ...
def fromlist(self, __list: List[_T]) -> None: ...
def fromunicode(self, __ustr: str) -> None: ...
def index(self, __v: _T) -> int: ... # type: ignore # Overrides Sequence
if sys.version_info >= (3, 10):
def index(self, __v: _T, __start: int = ..., __stop: int = ...) -> int: ...
else:
def index(self, __v: _T) -> int: ... # type: ignore # Overrides Sequence
def insert(self, __i: int, __v: _T) -> None: ...
def pop(self, __i: int = ...) -> _T: ...
if sys.version_info < (3,):