Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ Model
Class
Model
tests/test_plugins.py:70–71 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
68
with
install_plugin(plugin):
69
70
class
Model(BaseModel, plugin_settings={
'observe'
:
'all'
}):
71
a: int
72
73
assert Model.model_validate({
'a'
: 1}) == Model(a=1)
74
assert Model.model_validate_json(
'{"a": 1}'
) == Model(a=1)
Callers
3
test_on_validate_json_on_success
Function · 0.70
test_on_validate_json_on_error
Function · 0.70
test_all_handlers
Function · 0.70
Calls
no outgoing calls
Tested by
3
test_on_validate_json_on_success
Function · 0.56
test_on_validate_json_on_error
Function · 0.56
test_all_handlers
Function · 0.56