Pydantic · Module
model_computed_fields
model_fields gives the field definitions for a Pydantic model. Read it from the model class, not from an instance.
Last updated
Syntax
@classmethod
def model_fields(cls) -> Dict[str, FieldInfo]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BaseModelFieldInfomodel_computed_fieldsmodel_fields_set