MCPcopy
hub / github.com/pydantic/pydantic / Model

Class Model

tests/test_deprecated.py:182–185  ·  tests/test_deprecated.py::Model

Source from the content-addressed store, hash-verified

180 raise AttributeError
181
182 class Model(BaseModel):
183 model_config = ConfigDict(from_attributes=True)
184 foo: str
185 bar: int = 1
186
187 class ModelInvalid(BaseModel):
188 model_config = ConfigDict(from_attributes=True)

Callers 9

test_fieldsFunction · 0.70
test_fields_setFunction · 0.70
test_field_max_itemsFunction · 0.70
test_allow_mutationFunction · 0.70
test_v1_get_validatorsFunction · 0.70
test_deprecated_moduleFunction · 0.70

Calls 3

ConfigDictClass · 0.90
FieldFunction · 0.90
conlistFunction · 0.90

Tested by 9

test_fieldsFunction · 0.56
test_fields_setFunction · 0.56
test_field_max_itemsFunction · 0.56
test_allow_mutationFunction · 0.56
test_v1_get_validatorsFunction · 0.56
test_deprecated_moduleFunction · 0.56