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

Function _annotation_is_sequence

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

Source from the content-addressed store, hash-verified

56
57
58def _annotation_is_sequence(annotation: type[Any] | None) -> bool:
59 if lenient_issubclass(annotation, (str, bytes)):
60 return False
61 return lenient_issubclass(annotation, sequence_types)
62
63
64def field_annotation_is_sequence(annotation: type[Any] | None) -> bool:

Callers 2

_annotation_is_complexFunction · 0.85

Calls 1

lenient_issubclassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…