Skip to content

Commit 5f7fa7f

Browse files
committed
ignore types
1 parent cb34f1f commit 5f7fa7f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

livekit-rtc/livekit/rtc/audio_frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ._proto import audio_frame_pb2 as proto_audio
1818
from ._proto import ffi_pb2 as proto_ffi
1919
from ._utils import get_address
20-
from typing import Any, Union
20+
from typing import Any, Union, no_type_check
2121

2222

2323
class AudioFrame:
@@ -202,6 +202,7 @@ def __repr__(self) -> str:
202202
f"duration={self.duration:.3f})"
203203
)
204204

205+
@no_type_check
205206
@classmethod
206207
def __get_pydantic_core_schema__(cls, *_: Any):
207208
from pydantic_core import core_schema

livekit-rtc/livekit/rtc/video_frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ._ffi_client import FfiClient, FfiHandle
2121
from ._utils import get_address
2222

23-
from typing import Any
23+
from typing import Any, no_type_check
2424

2525

2626
class VideoFrame:
@@ -205,6 +205,7 @@ def convert(
205205
def __repr__(self) -> str:
206206
return f"rtc.VideoFrame(width={self.width}, height={self.height}, type={self.type})"
207207

208+
@no_type_check
208209
@classmethod
209210
def __get_pydantic_core_schema__(cls, *_: Any):
210211
from pydantic_core import core_schema

0 commit comments

Comments
 (0)