MCPcopy
hub / github.com/pydantic/pydantic / _pydantic_fields_complete

Function _pydantic_fields_complete

pydantic/dataclasses.py:316–321  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

314
315
316def _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__)

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected