MCPcopy Index your code
hub / github.com/msgspec/msgspec / NestedStruct

Class NestedStruct

tests/unit/test_struct_meta.py:279–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278 # Test nested structs
279 class NestedStruct(metaclass=CustomMeta):
280 inner: CustomStruct
281 name: str
282
283 nested = NestedStruct(inner=obj, name="nested")
284 assert nested.inner.x == 100

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…