mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-02 09:37:30 +08:00
memoryview: re-add inheritance from Sequence, set index and count to None (#12800)
This reverts commit f625e92ae5.
This commit is contained in:
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
|
||||
Reference in new issue
Block a user