get_all_basemodel_annotations(
cls: TypeBaseModel | Any,
*,
default_to_bound: bool = True
) | Name | Type | Description |
|---|---|---|
cls* | TypeBaseModel | Any | |
default_to_bound | bool | Default: True |
Get all annotations from a Pydantic BaseModel and its parents.
The Pydantic BaseModel class.
Whether to default to the bound of a TypeVar if it exists.