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

Class CustomStruct

tests/unit/test_struct_meta.py:25–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 """Test that StructMeta can be used directly as a metaclass."""
24
25 class CustomStruct(metaclass=StructMeta):
26 x: int
27 y: str
28
29 # Verify the struct works as expected
30 instance = CustomStruct(x=1, y="test")

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…