MCPcopy Index your code
hub / github.com/fastapi/fastapi / _has_computed_fields

Function _has_computed_fields

fastapi/_compat/v2.py:247–251  ·  view source on GitHub ↗
(field: ModelField)

Source from the content-addressed store, hash-verified

245
246
247def _has_computed_fields(field: ModelField) -> bool:
248 computed_fields = field._type_adapter.core_schema.get("schema", {}).get(
249 "computed_fields", []
250 )
251 return len(computed_fields) > 0
252
253
254def get_schema_from_model_field(

Callers 2

get_definitionsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…