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 3501cdb commit 6054288Copy full SHA for 6054288
mypyc/irbuild/mapper.py
@@ -90,11 +90,12 @@ def type_to_rtype(self, typ: Type | None) -> RType:
90
return bytes_rprimitive
91
elif typ.type.fullname == "builtins.list":
92
return list_rprimitive
93
+ # TODO: figure out why this breaks tests, fix, and uncomment
94
+ # elif typ.type.fullname == "builtins.dict":
95
+ # return exact_dict_rprimitive
96
# Dict subclasses are at least somewhat common and we
97
# specifically support them, so make sure that dict operations
98
# get optimized on them.
- elif typ.type.fullname == "builtins.dict":
- return exact_dict_rprimitive
99
elif any(cls.fullname == "builtins.dict" for cls in typ.type.mro):
100
return dict_rprimitive
101
elif typ.type.fullname == "builtins.set":
0 commit comments