From 144b92e434f75373c555e98ffcd0bd5070eb9c63 Mon Sep 17 00:00:00 2001 From: opi <opitz@cl.uni-heidelberg.de> Date: Tue, 23 Jul 2019 15:19:55 +0200 Subject: [PATCH] bugfix --- src/data_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_helpers.py b/src/data_helpers.py index 094b0da..e240acb 100644 --- a/src/data_helpers.py +++ b/src/data_helpers.py @@ -185,7 +185,7 @@ class HasCategoryNode(dict): dict.__init__(self, self.d) def __eq__(self, other): - if not isinstance(other, HasCategoryNode): + if not isinstance(other, type(self)): return False if not len(self.d) == len(other.d): return False -- GitLab