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

Function get_cached_model_fields

fastapi/_compat/v2.py:414–415  ·  view source on GitHub ↗
(model: type[BaseModel])

Source from the content-addressed store, hash-verified

412
413@lru_cache
414def get_cached_model_fields(model: type[BaseModel]) -> list[ModelField]:
415 return get_model_fields(model)
416
417
418# Duplicate of several schema functions from Pydantic v1 to make them compatible with

Callers 3

request_params_to_argsFunction · 0.90
request_body_to_argsFunction · 0.90

Calls 1

get_model_fieldsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…