Add __ne__ to BaseValueSet. Might have caused issues in Python 2, see #1442

This commit is contained in:
Dave Halter
2019-11-30 10:01:09 +01:00
parent 3c68d3d341
commit 59c5b51c0d

View File

@@ -69,5 +69,8 @@ class BaseValueSet(object):
def __eq__(self, other): def __eq__(self, other):
return self._set == other._set return self._set == other._set
def __ne__(self, other):
return not self.__eq__(other)
def __hash__(self): def __hash__(self):
return hash(self._set) return hash(self._set)