Construct a ModelField from given infos.
(
cls, name: str, annotation: Any, field_info: FieldInfo | None = None
)
| 169 | |
| 170 | @classmethod |
| 171 | def construct( |
| 172 | cls, name: str, annotation: Any, field_info: FieldInfo | None = None |
| 173 | ) -> Self: |
| 174 | """Construct a ModelField from given infos.""" |
| 175 | return cls._construct(name, annotation, field_info or FieldInfo()) |
| 176 | |
| 177 | def __hash__(self) -> int: |
| 178 | # Each ModelField is unique for our purposes, |
no test coverage detected