MCPcopy
hub / github.com/pydantic/pydantic / sequence_like

Function sequence_like

pydantic/v1/utils.py:158–159  ·  view source on GitHub ↗
(v: Any)

Source from the content-addressed store, hash-verified

156
157
158def sequence_like(v: Any) -> bool:
159 return isinstance(v, (list, tuple, set, frozenset, GeneratorType, deque))
160
161
162def validate_field_name(bases: Iterable[Type[Any]], field_name: str) -> None:

Callers 9

_validate_tupleMethod · 0.90
list_validatorFunction · 0.90
tuple_validatorFunction · 0.90
set_validatorFunction · 0.90
frozenset_validatorFunction · 0.90
deque_validatorFunction · 0.90
prepare_fieldMethod · 0.90
_get_valueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected