MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / Parent

Class Parent

tests/test_models.py:194–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 age: int
193
194 class Parent(BaseModel):
195 name: str
196 child: Child
197
198 model = Parent(name="Robert", child=Child(name="Foo", age=5))
199 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