MCPcopy
hub / github.com/pydantic/pydantic / items

Method items

pydantic/v1/utils.py:458–460  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

456 return [self[k] for k in self]
457
458 def items(self) -> Iterator[Tuple[str, Any]]:
459 for k in self:
460 yield k, self.get(k)
461
462 def __iter__(self) -> Iterator[str]:
463 for name in dir(self._obj):

Callers 15

color.pyFile · 0.45
collect_configMethod · 0.45
get_values_dictMethod · 0.45
updateMethod · 0.45
__init__Method · 0.45
merge_field_infosMethod · 0.45
_from_dataclass_fieldMethod · 0.45
_collect_metadataMethod · 0.45
__getattr__Function · 0.45
ByteSizeClass · 0.45

Calls 1

getMethod · 0.95

Tested by 14

test_annotated_aliasFunction · 0.36
create_partialFunction · 0.36
fooFunction · 0.36
create_patch_modelFunction · 0.36
make_fields_optionalFunction · 0.36
test_limited_dictFunction · 0.36
_test_fileFunction · 0.36
check_foobarMethod · 0.36
test_value_itemsFunction · 0.36