Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_schema
Method · 0.80
__new__
Method · 0.80
test_modify_get_schema_annotated
Function · 0.80
test_get_pydantic_core_schema_source_type
Function · 0.80
install_plugin
Function · 0.80
test_all_handlers
Function · 0.80
test_caches_get_cleaned_up
Function · 0.80
module
Function · 0.80
test_get_pydantic_core_schema_calls
Function · 0.80
test_composition
Function · 0.80
test_post_init
Function · 0.80
Calls
no outgoing calls
Tested by
14
test_modify_get_schema_annotated
Function · 0.64
test_get_pydantic_core_schema_source_type
Function · 0.64
install_plugin
Function · 0.64
test_all_handlers
Function · 0.64
test_caches_get_cleaned_up
Function · 0.64
module
Function · 0.64
test_get_pydantic_core_schema_calls
Function · 0.64
test_composition
Function · 0.64
test_post_init
Function · 0.64
test_nested_models
Function · 0.64
test_root_model_nested
Function · 0.64
test_function_validation_info_mode
Function · 0.64