Skip to content

Commit 847ea62

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 23536da commit 847ea62

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,14 +813,16 @@ def _construct_varargs(
813813
star_result = self.primitive_op(list_tuple_op, [value], line)
814814
else:
815815
star_result = self.primitive_op(sequence_tuple_op, [value], line)
816-
816+
817817
star2_arg = args[1]
818818
star2_value = star2_arg[0]
819819
if is_dict_rprimitive(star2_value.type):
820820
star2_fastpath_op = dict_copy_op
821821
else:
822822
star2_fastpath_op = dict_copy
823-
return star_result, self.primitive_op(star2_fastpath_op, [star2_value], line)
823+
return star_result, self.primitive_op(
824+
star2_fastpath_op, [star2_value], line
825+
)
824826
# elif ...: TODO extend this to optimize fn(*args, k=1, **kwargs) case
825827
# TODO optimize this case using the length utils - currently in review
826828
star_result = self.new_list_op(star_values, line)
@@ -834,7 +836,9 @@ def _construct_varargs(
834836
star2_fastpath_op = dict_copy_op
835837
else:
836838
star2_fastpath_op = dict_copy
837-
return self.new_tuple([], line), self.primitive_op(star2_fastpath_op, [value], line)
839+
return self.new_tuple([], line), self.primitive_op(
840+
star2_fastpath_op, [value], line
841+
)
838842

839843
star2_result = self._create_dict(star2_keys, star2_values, line)
840844

mypyc/test-data/irbuild-basic.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3793,4 +3793,3 @@ L0:
37933793
r2.__mypyc_env__ = r0; r3 = is_error
37943794
wrapper = r2
37953795
return wrapper
3796-

0 commit comments

Comments
 (0)