We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23edd4 commit 461b3f8Copy full SHA for 461b3f8
1 file changed
livekit-rtc/livekit/rtc/_utils.py
@@ -50,7 +50,7 @@ def _buffer_supported_or_raise(
50
if isinstance(data, memoryview):
51
if not data.contiguous:
52
raise ValueError("memoryview must be contiguous")
53
- if data.nbytes != len(data.obj):
+ if data.nbytes != len(data.obj): # type: ignore[arg-type]
54
raise ValueError("sliced memoryviews are not supported")
55
elif not isinstance(data, (bytes, bytearray)):
56
raise TypeError(f"expected bytes, bytearray, or memoryview, got {type(data)}")
0 commit comments