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 80ffcbf commit 442ce75Copy full SHA for 442ce75
mypyc/test-data/irbuild-weakref.test
@@ -0,0 +1,25 @@
1
+[case testWeakrefRef]
2
+from weakref import ref
3
+def f(x: object) -> object:
4
+ return proxy(x, None)
5
+
6
+[out]
7
+def f(x):
8
+ x :: object
9
+ r0 :: object
10
+L0:
11
+ r0 = PyWeakref_NewRef(x, 0)
12
+ return r0
13
14
+[case testWeakrefProxy]
15
+from weakref import proxy
16
17
18
19
20
21
22
23
24
+ r0 = PyWeakref_NewProxy(x, 0)
25
0 commit comments