Skip to content

Commit f625e92

Browse files
authored
memoryview: remove inheritance from Sequence (#12781)
It doesn't have `index`, `count` or `__reversed__` methods
1 parent 2d31815 commit f625e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ _IntegerFormats: TypeAlias = Literal[
834834
]
835835

836836
@final
837-
class memoryview(Sequence[_I]):
837+
class memoryview(Generic[_I]):
838838
@property
839839
def format(self) -> str: ...
840840
@property

0 commit comments

Comments
 (0)