From 774c8eed67a4264c38811cf5d9b92000b4d94e14 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 19 Aug 2020 08:41:24 +0200 Subject: [PATCH] Compare to anything --- relational/rtypes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/relational/rtypes.py b/relational/rtypes.py index a7bfa76..7108f7b 100644 --- a/relational/rtypes.py +++ b/relational/rtypes.py @@ -93,6 +93,8 @@ class Rdate: return Rdate(res.__str__()) def __eq__(self, other): + if not isinstance(other, Rdate): + return False return self.intdate == other.intdate def __ge__(self, other):