diff options
Diffstat (limited to 'taskflow/engines')
-rw-r--r-- | taskflow/engines/worker_based/types.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/taskflow/engines/worker_based/types.py b/taskflow/engines/worker_based/types.py index 9b660b5..b2334a3 100644 --- a/taskflow/engines/worker_based/types.py +++ b/taskflow/engines/worker_based/types.py @@ -67,6 +67,9 @@ class TopicWorker(object): else: return other.identity == self.identity + def __ne__(self, other): + return not self.__eq__(other) + def __repr__(self): r = reflection.get_class_name(self, fully_qualified=False) if self.identity is not self._NO_IDENTITY: |