Skip to content

Commit ef1a969

Browse files
committed
[mypyc] feat: use exact_dict_rprimitive for singledispatch registry rtype
1 parent c34d65d commit ef1a969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
RInstance,
5959
bool_rprimitive,
6060
c_int_rprimitive,
61-
dict_rprimitive,
61+
exact_dict_rprimitive,
6262
int_rprimitive,
6363
object_rprimitive,
6464
)
@@ -1043,7 +1043,7 @@ def add_register_method_to_callable_class(builder: IRBuilder, fn_info: FuncInfo)
10431043

10441044

10451045
def load_singledispatch_registry(builder: IRBuilder, dispatch_func_obj: Value, line: int) -> Value:
1046-
return builder.builder.get_attr(dispatch_func_obj, "registry", dict_rprimitive, line)
1046+
return builder.builder.get_attr(dispatch_func_obj, "registry", exact_dict_rprimitive, line)
10471047

10481048

10491049
def singledispatch_main_func_name(orig_name: str) -> str:

0 commit comments

Comments
 (0)