[Entrypoint][Refactor] Make field type hint more concrete (#3139)
Signed-off-by: wuhang <wuhang6@huawei.com>
This commit is contained in:
1 parent
51b4b1131e
commit
0d9d57acd9
20 files changed
+908
-543
No files matched your search
@@ -9,6 +9,9 @@ from __future__ import annotations
|
||||
|
||||
import re
|
||||
from enum import Enum, Flag, StrEnum, auto
|
||||
from typing import Literal, TypeAlias
|
||||
|
||||
FinalOutputModalityType: TypeAlias = Literal["text", "image", "audio", "video"]
|
||||
|
||||
_MODALITY_ALIASES: dict[str, str] = {
|
||||
"speech": "audio",
|
||||
|
||||
Reference in new issue
Block a user