Make memoryview inherit from Sequence (#5393)

This commit is contained in:
Adrian Freund
2021-05-10 12:46:17 +02:00
committed by GitHub
parent 740f672450
commit a2058829fa

View File

@@ -27,7 +27,6 @@ from typing import (
BinaryIO,
ByteString,
Callable,
Container,
Dict,
FrozenSet,
Generic,
@@ -624,7 +623,7 @@ class bytearray(MutableSequence[int], ByteString):
def __gt__(self, x: bytes) -> bool: ...
def __ge__(self, x: bytes) -> bool: ...
class memoryview(Sized, Container[int]):
class memoryview(Sized, Sequence[int]):
format: str
itemsize: int
shape: Optional[Tuple[int, ...]]