Skip to content
Snippets Groups Projects
Commit f42825dc authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Fix some instances of flake8-comprehensions C419

parent b50a225d
No related branches found
No related tags found
No related merge requests found
Pipeline #417703 passed
......@@ -633,8 +633,8 @@ class IdentityMapper(Mapper):
def map_substitution(self, expr, *args, **kwargs):
child = self.rec(expr.child, *args, **kwargs)
values = tuple([self.rec(v, *args, **kwargs) for v in expr.values])
if child is expr.child and all([val is orig_val
for val, orig_val in zip(values, expr.values)]):
if child is expr.child and all(val is orig_val
for val, orig_val in zip(values, expr.values)):
return expr
return type(expr)(child, expr.variables, values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment