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 11768a9 commit 555d83aCopy full SHA for 555d83a
mypyc/analysis/ircheck.py
@@ -197,7 +197,10 @@ def can_coerce_to(src: RType, dest: RType) -> bool:
197
if isinstance(src, RPrimitive):
198
# If either src or dest is a disjoint type, then they must both be.
199
if src.name in disjoint_types and dest.name in disjoint_types:
200
- return src.name == dest.name
+ return src.name == dest.name or (
201
+ src.name in ("builtins.dict", "builtins.dict[exact]")
202
+ and dest.name in ("builtins.dict", "builtins.dict[exact]")
203
+ )
204
return src.size == dest.size
205
if isinstance(src, RInstance):
206
return is_object_rprimitive(dest)
0 commit comments