MCPcopy
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_reuseFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_field_reuseFunction · 0.68