We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a425e commit dd5ec83Copy full SHA for dd5ec83
neo/core/filters.py
@@ -130,11 +130,7 @@ def __init__(self, z):
130
self.control = z
131
132
def evaluate(self, x):
133
- if isinstance(self.control, list):
134
- return x in self.control
135
- if isinstance(self.control, tuple):
136
137
- if isinstance(self.control, set):
+ if isinstance(self.control, (list, tuple, set)):
138
return x in self.control
139
if isinstance(self.control, int):
140
return x == self.control
0 commit comments