mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
memoryview: re-add inheritance from Sequence, set index and count to None (#12800)
This reverts commit f625e92ae5.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user