Pydantic · Module
model_parametrized_name
model_parametrized_name lets a generic Pydantic model choose its generated class name. model_rebuild rebuilds its schema when unresolved annotations prevent the initial schema from being complete.
Last updated
Syntax
@classmethod
def model_parametrized_name(cls, params: tuple[TypeForm[Any], ...]) -> str
@classmethod
def model_rebuild(
cls, *, force: bool = False, raise_errors: bool = True,
_parent_namespace_depth: int = 2,
_types_namespace: MappingNamespace | None = None,
) -> bool | NoneIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BaseModelGeneric modelsmodel_rebuildForwardRefmodel_json_schema