Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ AnnotatedModel
Class
AnnotatedModel
tests/test_annotated.py:156–157 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
154
assert Model(one=1).model_dump() == {
'one'
: 1}
155
156
class
AnnotatedModel(BaseModel):
157
one: Annotated[int, field]
158
159
assert AnnotatedModel(one=1).model_dump() == {
'one'
: 1}
160
Callers
2
test_field_reuse
Function · 0.85
test_model_dump_doesnt_dump_annotated_dunder
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_field_reuse
Function · 0.68
test_model_dump_doesnt_dump_annotated_dunder
Function · 0.68