details: https://code.tryton.org/tryton/commit/5c14f47fe215
branch: default
user: Cédric Krier <[email protected]>
date: Wed Sep 24 09:25:49 2025 +0200
description:
Remove unnecessary __ne__ implementation on Model
In standard Python already implement __ne__ as not __eq__.
diffstat:
trytond/trytond/model/model.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diffs (13 lines):
diff -r 6e259d80adc1 -r 5c14f47fe215 trytond/trytond/model/model.py
--- a/trytond/trytond/model/model.py Wed Sep 24 09:09:05 2025 +0200
+++ b/trytond/trytond/model/model.py Wed Sep 24 09:25:49 2025 +0200
@@ -382,9 +382,6 @@
return NotImplemented
return self.id < other.id
- def __ne__(self, other):
- return not self == other
-
def __hash__(self):
return hash((self.__name__, id(self) if self.id is None else self.id))