From f625e92ae5e5c5f3a62a02fc814c4bfb6cc197a1 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sat, 12 Oct 2024 00:47:51 +0800 Subject: [PATCH] `memoryview`: remove inheritance from `Sequence` (#12781) It doesn't have `index`, `count` or `__reversed__` methods --- stdlib/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 9530b5ca7..7574cdbe5 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -834,7 +834,7 @@ _IntegerFormats: TypeAlias = Literal[ ] @final -class memoryview(Sequence[_I]): +class memoryview(Generic[_I]): @property def format(self) -> str: ... @property