memoryview: re-add inheritance from Sequence, set index and count to None (#12800)

This reverts commit f625e92ae5.
This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2024-10-16 07:27:56 -07:00
1 parent 6feca18868
commit 2370b8b9d1
2 files changed
+9 -1

No files matched your search

@@ -56,3 +56,6 @@ assert_type(float_mv[0:2], memoryview[float])
# An invalid literal should raise an error.
mv = memoryview(b"abc")
mv.cast("abc") # type: ignore
mv.index(42) # type: ignore
mv.count(42) # type: ignore