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