Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_fields
Function · 0.70
test_fields_set
Function · 0.70
test_field_min_items_deprecation
Function · 0.70
test_field_min_items_with_min_length
Function · 0.70
test_field_max_items
Function · 0.70
test_field_max_items_with_max_length
Function · 0.70
test_allow_mutation
Function · 0.70
test_v1_get_validators
Function · 0.70
test_deprecated_module
Function · 0.70
Calls
3
ConfigDict
Class · 0.90
Field
Function · 0.90
conlist
Function · 0.90
Tested by
9
test_fields
Function · 0.56
test_fields_set
Function · 0.56
test_field_min_items_deprecation
Function · 0.56
test_field_min_items_with_min_length
Function · 0.56
test_field_max_items
Function · 0.56
test_field_max_items_with_max_length
Function · 0.56
test_allow_mutation
Function · 0.56
test_v1_get_validators
Function · 0.56
test_deprecated_module
Function · 0.56