Skip to content

Commit d3b3f0d

Browse files
committed
chore: refactor
1 parent 9057461 commit d3b3f0d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -897,10 +897,8 @@ def _construct_varargs(
897897
# tuple. Otherwise create the tuple from the list.
898898
if star_result is None:
899899
star_result = self.new_tuple(star_values, line)
900-
elif is_tuple_rprimitive(star_result.type):
901-
# We're just passing in the tuple
902-
pass
903-
else:
900+
elif not is_tuple_rprimitive(star_result.type):
901+
# if star_result is a tuple we took the fast path
904902
star_result = self.primitive_op(list_tuple_op, [star_result], line)
905903
if has_star2 and star2_result is None:
906904
# TODO: use dict_copy_op for simple cases of **kwargs

0 commit comments

Comments
 (0)