Skip to content

Commit 4b781ae

Browse files
committed
fix: mypy errs
1 parent 2f4205c commit 4b781ae

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
@@ -796,7 +796,7 @@ def _construct_varargs(
796796
elif kind == ARG_STAR2:
797797
if star2_result is None:
798798
star2_result = self._create_dict(star2_keys, star2_values, line)
799-
if is_true_dict_rprimitive(value):
799+
if is_true_dict_rprimitive(value.type):
800800
op = true_dict_update_op
801801
else:
802802
op = dict_update_in_display_op
@@ -1664,13 +1664,13 @@ def make_dict(self, key_value_pairs: Sequence[DictEntry], line: int) -> Value:
16641664
else:
16651665
# **value
16661666
if result is None:
1667-
if len(key_value_pairs) == 1 and is_true_dict_rprimitive(value):
1667+
if len(key_value_pairs) == 1 and is_true_dict_rprimitive(value.type):
16681668
# fast path for cases like `my_func(**dict(zip(iterable, other)))` and similar
16691669
return self.call_c(true_dict_copy_op, [value], line=line)
16701670

16711671
result = self._create_dict(keys, values, line)
16721672

1673-
if is_true_dict_rprimitive(value):
1673+
if is_true_dict_rprimitive(value.type):
16741674
op = true_dict_update_op
16751675
else:
16761676
op = dict_update_in_display_op

0 commit comments

Comments
 (0)