94
94
)
95
95
from mypyc .primitives .float_ops import isinstance_float
96
96
from 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
98
98
from mypyc .primitives .misc_ops import isinstance_bool
99
99
from mypyc .primitives .set_ops import isinstance_frozenset , isinstance_set
100
100
from mypyc .primitives .str_ops import (
@@ -296,7 +296,8 @@ def translate_list_from_generator_call(
296
296
and expr .arg_kinds [0 ] == ARG_POS
297
297
and isinstance (expr .args [0 ], CallExpr )
298
298
and isinstance (expr .args [0 ].callee , NameExpr )
299
- and expr .args [0 ].callee .fullname in (
299
+ and expr .args [0 ].callee .fullname
300
+ in (
300
301
# TODO: make constant for these vals
301
302
"builtins.map" ,
302
303
"builtins.filter" ,
@@ -307,7 +308,7 @@ def translate_list_from_generator_call(
307
308
itemtype = builder ._analyze_iterable_item_type (call_expr )
308
309
indextype = builder .type_to_rtype (itemtype )
309
310
index = Register (indextype , "__mypyc_list_helper__" , line = call_expr .line )
310
-
311
+
311
312
result = builder .new_list_op ([], expr .line )
312
313
313
314
def body_insts ():
0 commit comments