Skip to content

Commit 09abc84

Browse files
Update irbuild-weakref.test
1 parent 4e5ca41 commit 09abc84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mypyc/test-data/irbuild-weakref.test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[case testWeakrefRef]
2+
from typing import Any, Callable
23
from weakref import ref
3-
def f(x: object, cb: object) -> object:
4-
return proxy(x, cb)
4+
def f(x: object, cb: Callable[[object], Any]) -> object:
5+
return ref(x, cb)
56

67
[out]
78
def f(x):
@@ -13,8 +14,9 @@ L0:
1314
return r0
1415

1516
[case testWeakrefProxy]
17+
from typing import Any, Callable
1618
from weakref import proxy
17-
def f(x: object, cb: object) -> object:
19+
def f(x: object, cb: Callable[[object], Any]) -> object:
1820
return proxy(x, cb)
1921

2022
[out]

0 commit comments

Comments
 (0)