Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

export

游雁c798a0c7bb48
diff --git a/funasr/utils/build_dataclass.py b/funasr/utils/build_dataclass.py
index 6675c99a0..0d59ad958 100644
--- a/funasr/utils/build_dataclass.py
+++ b/funasr/utils/build_dataclass.py
@@ -1,7 +1,6 @@
import argparse
import dataclasses
-from typeguard import check_type
def build_dataclass(dataclass, args: argparse.Namespace):
@@ -12,6 +11,5 @@ def build_dataclass(dataclass, args: argparse.Namespace):
raise ValueError(
f"args doesn't have {field.name}. You need to set it to ArgumentsParser"
)
- check_type(field.name, getattr(args, field.name), field.type)
kwargs[field.name] = getattr(args, field.name)
return dataclass(**kwargs)