torchcell.datamodels.pydant.ModelStrictArbitrary

class ModelStrictArbitrary[source]

Bases: BaseModel

Strict immutable model that also permits arbitrary field types.

class Config[source]

Bases: object

Pydantic config forbidding extras, freezing, allowing arbitrary types.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].