SimuBox.schema.structs.MixinStructs module¶
- class SimuBox.schema.structs.MixinStructs.FigureAxesMixin(*, fig: Figure | None = None, ax: Axes | None = None)¶
-
画布类数据的基础数据结构体。
- ax: Axes | None¶
- fig: Figure | None¶
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'ax': FieldInfo(annotation=Union[Axes, NoneType], required=False), 'fig': FieldInfo(annotation=Union[Figure, NoneType], required=False)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- class SimuBox.schema.structs.MixinStructs.MixinBaseModel¶
基类:
BaseModel
数据结构体模板,定义了所有结构体的属性
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.