Negate payload equality while preserving ``NotImplemented`` semantics.
(self: Enum, other: object)
| 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.""" |
nothing calls this directly
no test coverage detected