torchcell.datamodels.pydant.ModelStrict

class ModelStrict[source]

Bases: BaseModel

Base model that forbids extra fields and is immutable.

class Config[source]

Bases: object

Pydantic config forbidding extras and freezing instances.

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

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