MCPcopy
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_all_handlersFunction · 0.70

Calls

no outgoing calls

Tested by 3

test_all_handlersFunction · 0.56