MCPcopy
hub / github.com/pydantic/pydantic / __contains__

Method __contains__

pydantic/v1/utils.py:470–471  ·  view source on GitHub ↗
(self, item: Any)

Source from the content-addressed store, hash-verified

468 return sum(1 for _ in self)
469
470 def __contains__(self, item: Any) -> bool:
471 return item in self.keys()
472
473 def __eq__(self, other: Any) -> bool:
474 return dict(self) == dict(other.items())

Callers 2

check_inFunction · 0.45
check_not_inFunction · 0.45

Calls 1

keysMethod · 0.95

Tested by

no test coverage detected