Get all annotations from a Pydantic BaseModel and its parents.
get_all_basemodel_annotations(
cls: TypeBaseModel | Any,
*,
default_to_bound: bool = True
) -> dict[str, type | TypeVar]| Name | Type | Description |
|---|---|---|
cls* | TypeBaseModel | Any | The Pydantic |
default_to_bound | bool | Default: TrueWhether to default to the bound of a |