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

Class Frozen

tests/python/test_dataclass_enum.py:314–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313def test_frozen_variants() -> None:
314 class Frozen(Enum, type_key=_unique_key("Frozen")):
315 flag: bool
316 yes: ClassVar[Frozen] = entry(flag=True)
317
318 with pytest.raises(AttributeError):
319 Frozen.yes.flag = False # ty: ignore[invalid-assignment]

Callers

nothing calls this directly

Calls 2

entryFunction · 0.90
_unique_keyFunction · 0.70

Tested by

no test coverage detected