Reintroduce __ne__

This commit is contained in:
Inada Naoki 2019-12-12 20:05:25 +09:00
parent 9e5ec95e02
commit 5e1fe818e3

View file

@ -80,6 +80,10 @@ class Timestamp(object):
)
return False
def __ne__(self, other):
"""not-equals method (see :func:`__eq__()`)"""
return not self.__eq__(other)
def __hash__(self):
return hash((self.seconds, self.nanoseconds))