diff --git a/stdlib/2and3/struct.pyi b/stdlib/2and3/struct.pyi index cbc5e8315a8a..c3e616d20f82 100644 --- a/stdlib/2and3/struct.pyi +++ b/stdlib/2and3/struct.pyi @@ -11,10 +11,10 @@ class error(Exception): ... _FmtType = Union[bytes, Text] if sys.version_info >= (3,): - _BufferType = Union[bytes, bytearray, memoryview] + _BufferType = Union[array[int], bytes, bytearray, memoryview] _WriteBufferType = Union[array, bytearray, memoryview] else: - _BufferType = Union[bytes, bytearray, buffer, memoryview] + _BufferType = Union[array[int], bytes, bytearray, buffer, memoryview] _WriteBufferType = Union[array[Any], bytearray, buffer, memoryview] def pack(fmt: _FmtType, *v: Any) -> bytes: ...