Skip to content

Commit f43c072

Browse files
committed
Update rt_subtype.py
1 parent 2db5a2a commit f43c072

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypyc/rt_subtype.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
RVoid,
2828
is_bit_rprimitive,
2929
is_bool_rprimitive,
30+
is_dict_rprimitive,
31+
is_exact_dict_rprimitive,
3032
is_int_rprimitive,
3133
is_short_int_rprimitive,
3234
)
@@ -58,6 +60,8 @@ def visit_rprimitive(self, left: RPrimitive) -> bool:
5860
return True
5961
if is_bit_rprimitive(left) and is_bool_rprimitive(self.right):
6062
return True
63+
if is_exact_dict_rprimitive(left) and is_dict_rprimitive(self.right):
64+
return True
6165
return left is self.right
6266

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

0 commit comments

Comments
 (0)