MCPcopy
hub / github.com/adamchainz/django-cors-headers / is_sequence

Function is_sequence

src/corsheaders/checks.py:168–171  ·  view source on GitHub ↗
(thing: Any, type_or_types: type[Any] | tuple[type[Any], ...])

Source from the content-addressed store, hash-verified

166
167
168def is_sequence(thing: Any, type_or_types: type[Any] | tuple[type[Any], ...]) -> bool:
169 return isinstance(thing, Sequence) and all(
170 isinstance(x, type_or_types) for x in thing
171 )

Callers 1

check_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…