Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/msgspec/msgspec
/ Test2
Class
Test2
tests/unit/test_struct.py:145–149 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
143
with
pytest.raises(TypeError, match=
"__new__"
):
144
145
class
Test2(Struct):
146
a: int
147
148
def
__new__(self, a):
149
pass
150
151
with
pytest.raises(TypeError, match=
"__slots__"
):
152
Callers
2
test_struct_dealloc_decrefs_type
Method · 0.70
test_struct_eq
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_struct_dealloc_decrefs_type
Method · 0.56
test_struct_eq
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…