Skip to content

Commit 0a0c146

Browse files
Update mapper.py
1 parent 27b61a4 commit 0a0c146

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
@@ -86,11 +86,12 @@ def type_to_rtype(self, typ: Type | None) -> RType:
8686
return bytes_rprimitive
8787
elif typ.type.fullname == "builtins.list":
8888
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
8992
# Dict subclasses are at least somewhat common and we
9093
# specifically support them, so make sure that dict operations
9194
# get optimized on them.
92-
elif typ.type.fullname == "builtins.dict":
93-
return exact_dict_rprimitive
9495
elif any(cls.fullname == "builtins.dict" for cls in typ.type.mro):
9596
return dict_rprimitive
9697
elif typ.type.fullname == "builtins.set":

0 commit comments

Comments
 (0)