Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ Model
Class
Model
tests/test_fields.py:50–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
a: int = 1
49
50
class
Model(BaseModel):
51
SubModel: SubModel = Field()
52
53
54
def
test_init_var_field():
Callers
5
test_init_var_field
Function · 0.70
test_root_model_arbitrary_private_field_works
Function · 0.70
test_computed_field_raises_correct_attribute_error
Function · 0.70
test_coerce_numbers_to_str_field_option
Function · 0.70
test_coerce_numbers_to_str_field_precedence
Function · 0.70
Calls
3
Field
Function · 0.90
ConfigDict
Class · 0.90
AfterValidator
Class · 0.90
Tested by
5
test_init_var_field
Function · 0.56
test_root_model_arbitrary_private_field_works
Function · 0.56
test_computed_field_raises_correct_attribute_error
Function · 0.56
test_coerce_numbers_to_str_field_option
Function · 0.56
test_coerce_numbers_to_str_field_precedence
Function · 0.56