diff --git a/stdlib/2and3/array.pyi b/stdlib/2and3/array.pyi index 5b9c1256e..1ca55c852 100644 --- a/stdlib/2and3/array.pyi +++ b/stdlib/2and3/array.pyi @@ -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: ... diff --git a/tests/stubtest_whitelists/py39.txt b/tests/stubtest_whitelists/py39.txt index 2a867afbe..7aa7cc11d 100644 --- a/tests/stubtest_whitelists/py39.txt +++ b/tests/stubtest_whitelists/py39.txt @@ -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__