Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/tvm-ffi
/ Opcode
Class
Opcode
tests/python/test_dataclass_enum.py:163–165 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
161
162
def
test_str_enum_payload_literal_sugar() -> None:
163
class
Opcode(StrEnum, type_key=_unique_key(
"StrEnumLiteral"
)):
164
add =
"+"
165
mul =
"*"
166
167
assert isinstance(Opcode.add, Opcode)
168
assert isinstance(Opcode.mul, Opcode)
Callers
1
test_payload_enum_compat_behaviors
Function · 0.70
Calls
2
entry
Function · 0.90
_unique_key
Function · 0.70
Tested by
1
test_payload_enum_compat_behaviors
Function · 0.56