array: update for py39 (#4180)

This commit is contained in:
Shantanu
2020-06-04 18:32:24 -07:00
committed by GitHub
parent 5369e813a9
commit 7aabfcc65a
2 changed files with 3 additions and 4 deletions

View File

@@ -41,7 +41,6 @@ class array(MutableSequence[_T], Generic[_T]):
def frombytes(self, __buffer: bytes) -> None: ...
def fromfile(self, __f: BinaryIO, __n: int) -> None: ...
def fromlist(self, __list: List[_T]) -> None: ...
def fromstring(self, __buffer: bytes) -> None: ...
def fromunicode(self, __ustr: str) -> None: ...
def index(self, __v: _T) -> int: ... # type: ignore # Overrides Sequence
def insert(self, __i: int, __v: _T) -> None: ...
@@ -54,10 +53,12 @@ class array(MutableSequence[_T], Generic[_T]):
def tobytes(self) -> bytes: ...
def tofile(self, __f: BinaryIO) -> None: ...
def tolist(self) -> List[_T]: ...
def tostring(self) -> bytes: ...
def tounicode(self) -> str: ...
if sys.version_info < (3,):
def write(self, f: BinaryIO) -> None: ...
if sys.version_info < (3, 9):
def fromstring(self, __buffer: bytes) -> None: ...
def tostring(self) -> bytes: ...
def __len__(self) -> int: ...

View File

@@ -3,8 +3,6 @@ _dummy_thread
_thread.ExceptHookArgs
_thread._ExceptHookArgs
_weakref.getweakrefcount
array.array.fromstring
array.array.tostring
ast.Bytes.__new__
ast.Ellipsis.__new__
ast.ExtSlice.__new__