MCPcopy
hub / github.com/pydantic/pydantic / check_in

Function check_in

pydantic/experimental/pipeline.py:619–620  ·  view source on GitHub ↗
(v: Any)

Source from the content-addressed store, hash-verified

617 values = constraint.values
618
619 def check_in(v: Any) -> bool:
620 return operator.__contains__(values, v)
621
622 s = _check_func(check_in, f'in {values}', s)
623 elif isinstance(constraint, _NotIn):

Callers

nothing calls this directly

Calls 1

__contains__Method · 0.45

Tested by

no test coverage detected