memoryview: remove inheritance from Sequence (#12781)

It doesn't have `index`, `count` or `__reversed__` methods
This commit is contained in:
Trim21
2024-10-12 00:47:51 +08:00
committed by GitHub
parent 2d31815232
commit f625e92ae5

View File

@@ -834,7 +834,7 @@ _IntegerFormats: TypeAlias = Literal[
]
@final
class memoryview(Sequence[_I]):
class memoryview(Generic[_I]):
@property
def format(self) -> str: ...
@property