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

Function _annotation_is_complex

fastapi/_compat/shared.py:80–85  ·  view source on GitHub ↗
(annotation: type[Any] | None)

Source from the content-addressed store, hash-verified

78
79
80def _annotation_is_complex(annotation: type[Any] | None) -> bool:
81 return (
82 lenient_issubclass(annotation, (BaseModel, Mapping, UploadFile))
83 or _annotation_is_sequence(annotation)
84 or is_dataclass(annotation)
85 )
86
87
88def field_annotation_is_complex(annotation: type[Any] | None) -> bool:

Callers 1

Calls 2

lenient_issubclassFunction · 0.85
_annotation_is_sequenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…