Commits

Alexandre Quessy committed f11e1ac

#29 Comparisons must be between same-type values

  • Participants
  • Parent commits 733556c

Comments (0)

Files changed (1)

         return [arg.value for arg in self.arguments]
 
     def __eq__(self, other):
+        if not isinstance(other, type(self)):
+            return False
         if self.address != other.address:
             return False
         if len(self.arguments) != len(other.arguments):
 
 
     def __eq__(self, other):
+        if not isinstance(other, type(self)):
+            return False
         if len(self.elements) != len(other.elements):
             return False
         for i in range(len(self.elements)):