MCPcopy
hub / github.com/pydantic/pydantic / MyModel

Class MyModel

tests/test_annotated.py:180–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 Nested = Annotated[list[StrAlias], Field(description='foo')]
179
180 class MyModel(BaseModel):
181 a: StrAlias = 'abc'
182 b: StrAlias
183 c: IntAlias
184 d: IntAlias
185 e: Nested
186
187 fields_repr = {k: repr(v) for k, v in MyModel.model_fields.items()}
188 assert fields_repr == {

Callers 1

test_annotated_aliasFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_annotated_aliasFunction · 0.56