Skip to content

Commit

Permalink
memoryview: remove inheritance from Sequence (#12781)
Browse files Browse the repository at this point in the history
It doesn't have `index`, `count` or `__reversed__` methods
  • Loading branch information
trim21 authored Oct 11, 2024
1 parent 2d31815 commit f625e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ _IntegerFormats: TypeAlias = Literal[
]

@final
class memoryview(Sequence[_I]):
class memoryview(Generic[_I]):
@property
def format(self) -> str: ...
@property
Expand Down

0 comments on commit f625e92

Please sign in to comment.