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

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

View File

@@ -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