Skip to content

Commit dd5ec83

Browse files
author
Moritz-Alexander-Kern
committed
simplify evaluate in IsIn
1 parent 70a425e commit dd5ec83

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

neo/core/filters.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,7 @@ def __init__(self, z):
130130
self.control = z
131131

132132
def evaluate(self, x):
133-
if isinstance(self.control, list):
134-
return x in self.control
135-
if isinstance(self.control, tuple):
136-
return x in self.control
137-
if isinstance(self.control, set):
133+
if isinstance(self.control, (list, tuple, set)):
138134
return x in self.control
139135
if isinstance(self.control, int):
140136
return x == self.control

0 commit comments

Comments
 (0)