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

Class DerivedStruct

tests/unit/test_struct_meta.py:310–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308
309 # Use the second level custom metaclass to create a struct class
310 class DerivedStruct(metaclass=DerivedMeta):
311 a: int
312 b: str
313
314 # Create an instance
315 obj = DerivedStruct(a=42, b="derived")

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…