From b2edb6ff48f75b9a823e4cdbcf6f375d9e1c7c84 Mon Sep 17 00:00:00 2001 From: Nestor Arocha Date: Tue, 20 Feb 2018 14:45:53 +0000 Subject: [PATCH] Removes redundant definition \__ne__ is already defined if \__eq__ is defined https://docs.python.org/3/reference/datamodel.html#object.__ne__ --- tasklib/lazy.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tasklib/lazy.py b/tasklib/lazy.py index cb268f3..7d8e0de 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -36,9 +36,6 @@ class LazyUUIDTask(object): # For saved Tasks, just define equality by equality of uuids return self['uuid'] == other['uuid'] - def __ne__(self, other): - return not self.__eq__(other) - def __hash__(self): return self['uuid'].__hash__() -- 2.39.5