Skip to content

Commit 34ab0b8

Browse files
Update subtype.py
1 parent 5528791 commit 34ab0b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mypyc/subtype.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
RVoid,
1515
is_bit_rprimitive,
1616
is_bool_rprimitive,
17+
is_dict_rprimive,
18+
is_exact_dict_rprimitive,
1719
is_fixed_width_rtype,
1820
is_int_rprimitive,
1921
is_object_rprimitive,
@@ -67,6 +69,9 @@ def visit_rprimitive(self, left: RPrimitive) -> bool:
6769
elif is_fixed_width_rtype(left):
6870
if is_int_rprimitive(right):
6971
return True
72+
elif is_exact_dict_rprimitive(left):
73+
if is_dict_rprimitive(right):
74+
return True
7075
return left is right
7176

7277
def visit_rtuple(self, left: RTuple) -> bool:

0 commit comments

Comments
 (0)