util
用于 Ariadne 数据模型的工具类.
AriadneBaseModel 🔗
Bases: BaseModel
Ariadne 一切数据模型的基类.
Source code in src/graia/ariadne/model/util.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
Config 🔗
Bases: BaseConfig
Ariadne BaseModel 设置
Source code in src/graia/ariadne/model/util.py
47 48 49 50 51 52 53 54 55 |
|
__init__ 🔗
__init__(**data: Any) -> None
初始化模型. 直接向 pydantic 转发.
Source code in src/graia/ariadne/model/util.py
17 18 19 |
|
dict 🔗
dict(
*,
include: Union[None, AbstractSetIntStr, MappingIntStrAny] = None,
exclude: Union[None, AbstractSetIntStr, MappingIntStrAny] = None,
by_alias: bool = False,
skip_defaults: bool = False,
exclude_unset: bool = False,
exclude_defaults: bool = False,
exclude_none: bool = False,
to_camel: bool = False
) -> DictStrAny
转化为字典, 直接向 pydantic 转发.
Source code in src/graia/ariadne/model/util.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
AriadneOptions 🔗
Bases: TypedDict
Ariadne 内部的选项存储
Source code in src/graia/ariadne/model/util.py
58 59 60 61 62 63 |
|