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

Function _payload_enum_str

python/tvm_ffi/dataclasses/enum.py:250–252  ·  view source on GitHub ↗

Render as the raw payload, matching ``int`` / ``str`` enum expectations.

(self: Enum)

Source from the content-addressed store, hash-verified

248 return NotImplemented
249
250 def _payload_enum_str(self: Enum) -> str:
251 """Render as the raw payload, matching ``int`` / ``str`` enum expectations."""
252 return str(self.value) # type: ignore[attr-defined]
253
254 def _payload_enum_hash(self: Enum) -> int:
255 """Hash like the raw payload so equality and hashing stay consistent."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected