MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _Bad

Class _Bad

tests/python/test_dataclass_enum.py:85–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 with pytest.raises(TypeError):
84
85 class _Bad(Enum, type_key=_unique_key("BadValue")):
86 flag: bool
87 a: ClassVar[_Bad] = entry(flag=True, _value=5)
88
89
90def test_entry_rejects__name_kwarg() -> None:

Callers

nothing calls this directly

Calls 2

entryFunction · 0.90
_unique_keyFunction · 0.70

Tested by

no test coverage detected