From 71b667a5e10ec9260f2c84109574fb7884ce09a0 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 --HG-- extra : rebase_source : d7ad32012a9b93aa898b5c673e46cdf0047211e8 --- 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):