MCPcopy
hub / github.com/pydantic/pydantic / clear

Method clear

pydantic/_internal/_generics.py:74–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 """
73
74 def clear(self) -> None:
75 for mapping in self.maps:
76 mapping.clear()
77
78 def __setitem__(self, key: KT, value: VT) -> None:
79 for mapping in self.maps:

Callers 15

__new__Method · 0.80
finalize_schemaMethod · 0.80
__new__Method · 0.80
install_pluginFunction · 0.80
test_all_handlersFunction · 0.80
moduleFunction · 0.80
test_compositionFunction · 0.80
test_post_initFunction · 0.80

Calls

no outgoing calls

Tested by 14

install_pluginFunction · 0.64
test_all_handlersFunction · 0.64
moduleFunction · 0.64
test_compositionFunction · 0.64
test_post_initFunction · 0.64
test_nested_modelsFunction · 0.64
test_root_model_nestedFunction · 0.64