(model: type[pydantic.BaseModel])
| 108 | |
| 109 | |
| 110 | def get_model_config(model: type[pydantic.BaseModel]) -> Any: |
| 111 | if PYDANTIC_V1: |
| 112 | return model.__config__ # type: ignore |
| 113 | return model.model_config |
| 114 | |
| 115 | |
| 116 | def get_model_fields(model: type[pydantic.BaseModel]) -> dict[str, FieldInfo]: |