(annotation: type[Any] | None)
| 78 | |
| 79 | |
| 80 | def _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 | |
| 88 | def field_annotation_is_complex(annotation: type[Any] | None) -> bool: |
no test coverage detected
searching dependent graphs…