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 daab9af commit f3927d4Copy full SHA for f3927d4
mypyc/irbuild/ll_builder.py
@@ -914,7 +914,7 @@ def _construct_varargs(
914
elif not is_tuple_rprimitive(star_result.type):
915
# if star_result is a tuple we took the fast path
916
star_result = self.primitive_op(list_tuple_op, [star_result], line)
917
- if has_star2 and star2_result is None:
+ if has_star2 and star2_result is None and len(star2_keys) > 0:
918
# TODO: use dict_copy_op for simple cases of **kwargs
919
star2_result = self._create_dict(star2_keys, star2_values, line)
920
0 commit comments