Skip to content

Commit 8649798

Browse files
committed
fix: mypy errs
1 parent d1cedf0 commit 8649798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def _construct_varargs(
799799
elif kind == ARG_STAR2:
800800
if star2_result is None:
801801
star2_result = self._create_dict(star2_keys, star2_values, line)
802-
if is_true_dict_rprimitive(value):
802+
if is_true_dict_rprimitive(value.type):
803803
op = true_dict_update_op
804804
else:
805805
op = dict_update_in_display_op
@@ -1667,13 +1667,13 @@ def make_dict(self, key_value_pairs: Sequence[DictEntry], line: int) -> Value:
16671667
else:
16681668
# **value
16691669
if result is None:
1670-
if len(key_value_pairs) == 1 and is_true_dict_rprimitive(value):
1670+
if len(key_value_pairs) == 1 and is_true_dict_rprimitive(value.type):
16711671
# fast path for cases like `my_func(**dict(zip(iterable, other)))` and similar
16721672
return self.call_c(true_dict_copy_op, [value], line=line)
16731673

16741674
result = self._create_dict(keys, values, line)
16751675

1676-
if is_true_dict_rprimitive(value):
1676+
if is_true_dict_rprimitive(value.type):
16771677
op = true_dict_update_op
16781678
else:
16791679
op = dict_update_in_display_op

0 commit comments

Comments
 (0)