Skip to content

Commit f3927d4

Browse files
Update ll_builder.py
1 parent daab9af commit f3927d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def _construct_varargs(
914914
elif not is_tuple_rprimitive(star_result.type):
915915
# if star_result is a tuple we took the fast path
916916
star_result = self.primitive_op(list_tuple_op, [star_result], line)
917-
if has_star2 and star2_result is None:
917+
if has_star2 and star2_result is None and len(star2_keys) > 0:
918918
# TODO: use dict_copy_op for simple cases of **kwargs
919919
star2_result = self._create_dict(star2_keys, star2_values, line)
920920

0 commit comments

Comments
 (0)