Skip to content

Commit 6054288

Browse files
committed
Update mapper.py
1 parent 3501cdb commit 6054288

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mypyc/irbuild/mapper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@ def type_to_rtype(self, typ: Type | None) -> RType:
9090
return bytes_rprimitive
9191
elif typ.type.fullname == "builtins.list":
9292
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
9396
# Dict subclasses are at least somewhat common and we
9497
# specifically support them, so make sure that dict operations
9598
# get optimized on them.
96-
elif typ.type.fullname == "builtins.dict":
97-
return exact_dict_rprimitive
9899
elif any(cls.fullname == "builtins.dict" for cls in typ.type.mro):
99100
return dict_rprimitive
100101
elif typ.type.fullname == "builtins.set":

0 commit comments

Comments
 (0)