MCPcopy
hub / github.com/pydantic/pydantic / keys

Method keys

pydantic/v1/utils.py:448–453  ·  view source on GitHub ↗

Keys of the pseudo dictionary, uses a list not set so order information can be maintained like python dictionaries.

(self)

Source from the content-addressed store, hash-verified

446 return set()
447
448 def keys(self) -> List[Any]:
449 """
450 Keys of the pseudo dictionary, uses a list not set so order information can be maintained like python
451 dictionaries.
452 """
453 return list(self)
454
455 def values(self) -> List[Any]:
456 return [self[k] for k in self]

Callers 15

__contains__Method · 0.95
wrapperFunction · 0.80
FieldFunction · 0.80
sortMethod · 0.80
_sort_recursiveMethod · 0.80
model_copyMethod · 0.80
__class_getitem__Method · 0.80
__eq__Method · 0.80
copyMethod · 0.80
_collect_bases_dataMethod · 0.80
make_hash_funcFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_wrapFunction · 0.64
test_kwargsFunction · 0.64
test_args_nameFunction · 0.64
new_schema_validatorMethod · 0.64
test_copy_excludeFunction · 0.64
test_copy_includeFunction · 0.64
test_copy_updateFunction · 0.64
test_by_aliasFunction · 0.64
test_by_alias_generatorFunction · 0.64