From a8be9c213c7f923725304e4aac6dc07ef1778690 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Wed, 28 Nov 2012 22:21:39 +0100 Subject: [PATCH] Fix the __eq__ operator for ArrayType --- wsme/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsme/types.py b/wsme/types.py index 314fc59..02a5f84 100644 --- a/wsme/types.py +++ b/wsme/types.py @@ -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):