Pydantic · Module
model_construct
model_construct() creates a Pydantic model without validation. Use it only with trusted or already validated data because it can create invalid models.
Last updated
Syntax
BaseModel.model_construct(_fields_set: set[str] | None = None, **values: Any) -> SelfIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BaseModelmodel_validate()model_validate_json()model_fields_setmodel_config.extramodel_copy()