Return whether the fields were successfully collected (i.e. type hints were successfully resolved). This is a private helper, not meant to be used outside Pydantic.
(cls: type[PydanticDataclass])
| 314 | |
| 315 | |
| 316 | def _pydantic_fields_complete(cls: type[PydanticDataclass]) -> bool: |
| 317 | """Return whether the fields were successfully collected (i.e. type hints were successfully resolved). |
| 318 | |
| 319 | This is a private helper, not meant to be used outside Pydantic. |
| 320 | """ |
| 321 | return all(field_info._complete for field_info in cls.__pydantic_fields__.values()) |
| 322 | |
| 323 | |
| 324 | __getattr__ = getattr_migration(__name__) |