MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / Parent

Class Parent

tests/test_models.py:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 age: int
208
209 class Parent(BaseModel):
210 name: str
211 child: Child
212
213 model = Parent(name="Robert", child=Child(name="Foo", age=5))
214 assert str(model) == "Parent(name='Robert', child=Child(name='Foo', age=5))"

Callers 1

test_repr_nested_modelFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_repr_nested_modelFunction · 0.68