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 2db5a2a commit f43c072Copy full SHA for f43c072
mypyc/rt_subtype.py
@@ -27,6 +27,8 @@
27
RVoid,
28
is_bit_rprimitive,
29
is_bool_rprimitive,
30
+ is_dict_rprimitive,
31
+ is_exact_dict_rprimitive,
32
is_int_rprimitive,
33
is_short_int_rprimitive,
34
)
@@ -58,6 +60,8 @@ def visit_rprimitive(self, left: RPrimitive) -> bool:
58
60
return True
59
61
if is_bit_rprimitive(left) and is_bool_rprimitive(self.right):
62
63
+ if is_exact_dict_rprimitive(left) and is_dict_rprimitive(self.right):
64
+ return True
65
return left is self.right
66
67
def visit_rtuple(self, left: RTuple) -> bool:
0 commit comments