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

Class Kind

tests/python/test_dataclass_enum.py:350–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348 """Bare ``ClassVar`` and ``ClassVar = entry(...)`` may mix in one class."""
349
350 class Kind(Enum, type_key=_unique_key("Kind")):
351 blank: ClassVar[Kind]
352 tag: str = "" # ordinary field; extra fields follow
353 named: ClassVar[Kind] = entry(tag="hi")
354
355 # ``ClassVar`` binders are processed before ``entry(...)`` assignments.
356 assert Kind.blank._value == 0

Callers

nothing calls this directly

Calls 2

entryFunction · 0.90
_unique_keyFunction · 0.70

Tested by

no test coverage detected