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

Function _payload_enum_ne

python/tvm_ffi/dataclasses/enum.py:244–248  ·  view source on GitHub ↗

Negate payload equality while preserving ``NotImplemented`` semantics.

(self: Enum, other: object)

Source from the content-addressed store, hash-verified

242 return NotImplemented
243
244 def _payload_enum_ne(self: Enum, other: object) -> Any:
245 """Negate payload equality while preserving ``NotImplemented`` semantics."""
246 if (eq := _payload_enum_eq(self, other)) is not NotImplemented:
247 return not eq
248 return NotImplemented
249
250 def _payload_enum_str(self: Enum) -> str:
251 """Render as the raw payload, matching ``int`` / ``str`` enum expectations."""

Callers

nothing calls this directly

Calls 1

_payload_enum_eqFunction · 0.85

Tested by

no test coverage detected