We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d117f commit 80ffcbfCopy full SHA for 80ffcbf
mypyc/primitives/weakref_ops.py
@@ -1,3 +1,4 @@
1
+from mypyc.ir.ops import ERR_MAGIC
2
from mypyc.ir.rtypes import object_rprimitive
3
from mypyc.primitives.registry import function_op
4
@@ -8,11 +9,13 @@
8
9
arg_types=[object_rprimitive, object_rprimitive],
10
return_type=object_rprimitive,
11
c_function_name="PyWeakref_NewRef",
12
+ error_kind=ERR_MAGIC,
13
)
14
15
py_weakref_new_ref_op = function_op(
16
name="weakref.proxy",
17
18
19
c_function_name="PyWeakref_NewProxy",
20
21
0 commit comments