Skip to content

Commit 4fba4d0

Browse files
committed
Revert "ignore types"
This reverts commit 5f7fa7f.
1 parent 5f7fa7f commit 4fba4d0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

livekit-rtc/livekit/rtc/audio_frame.py

Lines changed: 1 addition & 2 deletions
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, no_type_check
20+
from typing import Any, Union
2121

2222

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

205-
@no_type_check
206205
@classmethod
207206
def __get_pydantic_core_schema__(cls, *_: Any):
208207
from pydantic_core import core_schema

livekit-rtc/livekit/rtc/video_frame.py

Lines changed: 1 addition & 2 deletions
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, no_type_check
23+
from typing import Any
2424

2525

2626
class VideoFrame:
@@ -205,7 +205,6 @@ 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
209208
@classmethod
210209
def __get_pydantic_core_schema__(cls, *_: Any):
211210
from pydantic_core import core_schema

0 commit comments

Comments
 (0)