Skip to content

Commit 376f093

Browse files
committed
fix: steal maybe
1 parent 62306b6 commit 376f093

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypyc/primitives/weakref_ops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
new_proxy_op = function_op(
2525
name="_weakref.proxy",
2626
arg_types=[object_rprimitive],
27+
steals=[True],
2728
return_type=object_rprimitive,
2829
c_function_name="PyWeakref_NewProxy",
2930
extra_int_constants=[(0, pointer_rprimitive)],
@@ -33,6 +34,7 @@
3334
new_proxy_with_callback_op = function_op(
3435
name="_weakref.proxy",
3536
arg_types=[object_rprimitive, object_rprimitive],
37+
steals=[True, False],
3638
return_type=object_rprimitive,
3739
c_function_name="PyWeakref_NewProxy",
3840
error_kind=ERR_MAGIC,

0 commit comments

Comments
 (0)