Skip to content

Commit 461b3f8

Browse files
committed
fix types
1 parent f23edd4 commit 461b3f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

livekit-rtc/livekit/rtc/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _buffer_supported_or_raise(
5050
if isinstance(data, memoryview):
5151
if not data.contiguous:
5252
raise ValueError("memoryview must be contiguous")
53-
if data.nbytes != len(data.obj):
53+
if data.nbytes != len(data.obj): # type: ignore[arg-type]
5454
raise ValueError("sliced memoryviews are not supported")
5555
elif not isinstance(data, (bytes, bytearray)):
5656
raise TypeError(f"expected bytes, bytearray, or memoryview, got {type(data)}")

0 commit comments

Comments
 (0)