Implementing the special method ``++__ne__++`` is not equivalent to implementing the special method ``++__eq__++``. By default ``++__ne__++`` will call ``++__eq__++``, but the default implementation of ``++__eq__++`` does not call ``++__ne__++``.
This rule raises an issue when the special method ``++__ne__++`` is implemented but not the ``++__eq__++`` method.
== Noncompliant Code Example
----
class Ne:
def __ne__(self, other): # Noncompliant.
return False
myvar = Ne() == 1 # False. __ne__ is not called
myvar = 1 == Ne() # False. __ne__ is not called
myvar = Ne() != 1 # False
myvar = 1 != Ne() # False
----
== Compliant Solution
----
# Recommended, as __ne__ delegates to __eq__ by default