We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9057461 commit d3b3f0dCopy full SHA for d3b3f0d
mypyc/irbuild/ll_builder.py
@@ -897,10 +897,8 @@ def _construct_varargs(
897
# tuple. Otherwise create the tuple from the list.
898
if star_result is None:
899
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:
+ elif not is_tuple_rprimitive(star_result.type):
+ # if star_result is a tuple we took the fast path
904
star_result = self.primitive_op(list_tuple_op, [star_result], line)
905
if has_star2 and star2_result is None:
906
# TODO: use dict_copy_op for simple cases of **kwargs
0 commit comments