Skip to content

Commit 80ffcbf

Browse files
Update weakref_ops.py
1 parent c4d117f commit 80ffcbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypyc/primitives/weakref_ops.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from mypyc.ir.ops import ERR_MAGIC
12
from mypyc.ir.rtypes import object_rprimitive
23
from mypyc.primitives.registry import function_op
34

@@ -8,11 +9,13 @@
89
arg_types=[object_rprimitive, object_rprimitive],
910
return_type=object_rprimitive,
1011
c_function_name="PyWeakref_NewRef",
12+
error_kind=ERR_MAGIC,
1113
)
1214

1315
py_weakref_new_ref_op = function_op(
1416
name="weakref.proxy",
1517
arg_types=[object_rprimitive, object_rprimitive],
1618
return_type=object_rprimitive,
1719
c_function_name="PyWeakref_NewProxy",
20+
error_kind=ERR_MAGIC,
1821
)

0 commit comments

Comments
 (0)