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

Class Container

tests/unit/test_struct_meta.py:360–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358
359 # Test encoding and decoding with nested structs
360 class Container(metaclass=EncoderMeta):
361 item: EncoderStruct
362 count: int
363
364 container = Container(item=obj, count=1)
365 json_bytes = msgspec.json.encode(container)

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…