Compare to anything

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2020-08-19 08:41:24 +02:00
parent b69fd0980b
commit 774c8eed67

View File

@@ -93,6 +93,8 @@ class Rdate:
return Rdate(res.__str__()) return Rdate(res.__str__())
def __eq__(self, other): def __eq__(self, other):
if not isinstance(other, Rdate):
return False
return self.intdate == other.intdate return self.intdate == other.intdate
def __ge__(self, other): def __ge__(self, other):