MCPcopy
hub / github.com/pydantic/pydantic / check_not_in

Function check_not_in

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

Source from the content-addressed store, hash-verified

624 values = constraint.values
625
626 def check_not_in(v: Any) -> bool:
627 return operator.__not__(operator.__contains__(values, v))
628
629 s = _check_func(check_not_in, f'not in {values}', s)
630 else:

Callers

nothing calls this directly

Calls 1

__contains__Method · 0.45

Tested by

no test coverage detected