9494)
9595from mypyc .primitives .float_ops import isinstance_float
9696from mypyc .primitives .int_ops import isinstance_int
97- from mypyc .primitives .list_ops import isinstance_list , new_list_set_item_op , list_append_op
97+ from mypyc .primitives .list_ops import isinstance_list , list_append_op , new_list_set_item_op
9898from mypyc .primitives .misc_ops import isinstance_bool
9999from mypyc .primitives .set_ops import isinstance_frozenset , isinstance_set
100100from mypyc .primitives .str_ops import (
@@ -296,7 +296,8 @@ def translate_list_from_generator_call(
296296 and expr .arg_kinds [0 ] == ARG_POS
297297 and isinstance (expr .args [0 ], CallExpr )
298298 and isinstance (expr .args [0 ].callee , NameExpr )
299- and expr .args [0 ].callee .fullname in (
299+ and expr .args [0 ].callee .fullname
300+ in (
300301 # TODO: make constant for these vals
301302 "builtins.map" ,
302303 "builtins.filter" ,
@@ -307,7 +308,7 @@ def translate_list_from_generator_call(
307308 itemtype = builder ._analyze_iterable_item_type (call_expr )
308309 indextype = builder .type_to_rtype (itemtype )
309310 index = Register (indextype , "__mypyc_list_helper__" , line = call_expr .line )
310-
311+
311312 result = builder .new_list_op ([], expr .line )
312313
313314 def body_insts ():
0 commit comments