Skip to content

Commit 2936d8a

Browse files
Update misc_ops.py
1 parent a6362c1 commit 2936d8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypyc/primitives/misc_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
c_pyssize_t_rprimitive,
1212
cstring_rprimitive,
1313
dict_rprimitive,
14+
exact_dict_rprimitive,
1415
int_rprimitive,
1516
object_pointer_rprimitive,
1617
object_rprimitive,
@@ -155,7 +156,7 @@
155156
# Get the sys.modules dictionary
156157
get_module_dict_op = custom_op(
157158
arg_types=[],
158-
return_type=dict_rprimitive,
159+
return_type=exact_dict_rprimitive,
159160
c_function_name="PyImport_GetModuleDict",
160161
error_kind=ERR_NEVER,
161162
is_borrowed=True,

0 commit comments

Comments
 (0)