Fix the __eq__ operator for ArrayType
This commit is contained in:
parent
cf0b4c4ea3
commit
a8be9c213c
@ -31,7 +31,8 @@ class ArrayType(object):
|
||||
return hash(self.item_type)
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.item_type == other.item_type
|
||||
return isinstance(other, ArrayType) \
|
||||
and self.item_type == other.item_type
|
||||
|
||||
@property
|
||||
def item_type(self):
|
||||
|
Loading…
Reference in New Issue
Block a user