Pydantic · Module
model_rebuild
model_rebuild() rebuilds a Pydantic model schema after referenced types are defined. It supports forward annotations, recursive models, and generic models.
Last updated
Syntax
Model.model_rebuild()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BaseModelmodel_json_schema()Forward annotationsRecursive modelsGeneric modelsupdate_forward_refs()