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

Function _payload_enum_repr

python/tvm_ffi/dataclasses/enum.py:269–271  ·  view source on GitHub ↗

Render as ``Class.member``, matching Python payload enum conventions.

(self: Enum)

Source from the content-addressed store, hash-verified

267 return str(self._name)
268
269 def _payload_enum_repr(self: Enum) -> str:
270 """Render as ``Class.member``, matching Python payload enum conventions."""
271 return f"{type(self).__name__}.{self.name}" # ty: ignore[unresolved-attribute]
272
273 if "name" not in cls.__dict__:
274 cls.name = property(_payload_enum_name) # ty: ignore[unresolved-attribute]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected