MCPcopy
hub / github.com/pydantic/pydantic / is_excluded

Method is_excluded

pydantic/v1/utils.py:498–504  ·  view source on GitHub ↗

Check if item is fully excluded. :param item: key or index of a value

(self, item: Any)

Source from the content-addressed store, hash-verified

496 self._items: 'MappingIntStrAny' = items
497
498 def is_excluded(self, item: Any) -> bool:
499 """
500 Check if item is fully excluded.
501
502 :param item: key or index of a value
503 """
504 return self.is_true(self._items.get(item))
505
506 def is_included(self, item: Any) -> bool:
507 """

Callers 3

test_value_itemsFunction · 0.95
_get_valueMethod · 0.45
_get_valueFunction · 0.45

Calls 2

is_trueMethod · 0.95
getMethod · 0.45

Tested by 1

test_value_itemsFunction · 0.76