We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5528791 commit 34ab0b8Copy full SHA for 34ab0b8
mypyc/subtype.py
@@ -14,6 +14,8 @@
14
RVoid,
15
is_bit_rprimitive,
16
is_bool_rprimitive,
17
+ is_dict_rprimive,
18
+ is_exact_dict_rprimitive,
19
is_fixed_width_rtype,
20
is_int_rprimitive,
21
is_object_rprimitive,
@@ -67,6 +69,9 @@ def visit_rprimitive(self, left: RPrimitive) -> bool:
67
69
elif is_fixed_width_rtype(left):
68
70
if is_int_rprimitive(right):
71
return True
72
+ elif is_exact_dict_rprimitive(left):
73
+ if is_dict_rprimitive(right):
74
+ return True
75
return left is right
76
77
def visit_rtuple(self, left: RTuple) -> bool:
0 commit comments