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

Class Missing

tests/python/test_dataclass_enum.py:100–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99def test_get_missing_raises() -> None:
100 class Missing(Enum, type_key=_unique_key("Missing")):
101 flag: bool
102 yes: ClassVar[Missing] = entry(flag=True)
103
104 with pytest.raises(KeyError):
105 Missing.get("no-such-entry")

Callers

nothing calls this directly

Calls 2

entryFunction · 0.90
_unique_keyFunction · 0.70

Tested by

no test coverage detected