mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Make memoryview inherit from Sequence (#5393)
This commit is contained in:
@@ -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, ...]]
|
||||
|
||||
Reference in New Issue
Block a user