Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/msgspec/msgspec
/ Test2
Class
Test2
tests/unit/test_convert.py:2058–2060 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2056
c: int = 0
2057
2058
class
Test2(Struct, tag=tag2):
2059
x: int
2060
y: int
2061
2062
# Tag can be in any position
2063
assert decode({
"type"
: tag1,
"a"
: 1,
"b"
: 2}) == Test1(1, 2)
Callers
3
test_struct_union
Method · 0.70
test_struct_array_union
Method · 0.70
test_generic_struct_union
Method · 0.70
Calls
no outgoing calls
Tested by
3
test_struct_union
Method · 0.56
test_struct_array_union
Method · 0.56
test_generic_struct_union
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…