Skip to content

Commit 81be300

Browse files
committed
fix mypy errs
1 parent 167d085 commit 81be300

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -799,18 +799,18 @@ def _construct_varargs(
799799
if len(args) == 1:
800800
# fn(*args)
801801
if is_list_rprimitive(value.type):
802-
value = self.call_c(list_tuple_op, [value], line)
802+
value = self.primitive_op(list_tuple_op, [value], line)
803803
elif not is_tuple_rprimitive(value.type):
804-
value = self.call_c(sequence_tuple_op, [value], line)
804+
value = self.primitive_op(sequence_tuple_op, [value], line)
805805
return value, self._create_dict([], [], line)
806806
elif len(args) == 2 and args[1][1] == ARG_STAR2:
807807
# fn(*args, **kwargs)
808808
if is_tuple_rprimitive(value.type):
809809
star_result = value
810810
elif is_list_rprimitive(value.type):
811-
star_result = self.call_c(list_tuple_op, [value], line)
811+
star_result = self.primitive_op(list_tuple_op, [value], line)
812812
else:
813-
star_result = self.call_c(sequence_tuple_op, [value], line)
813+
star_result = self.primitive_op(sequence_tuple_op, [value], line)
814814
continue
815815
# elif ...: TODO extend this to optimize fn(*args, k=1, **kwargs) case
816816
# TODO optimize this case using the length utils - currently in review

0 commit comments

Comments
 (0)