8000
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 331f845 commit 3357393Copy full SHA for 3357393
test-data/unit/check-modules.test
@@ -1280,15 +1280,17 @@ import a
1280
[file a.py]
1281
import b
1282
def g() -> None:
1283
- f()
+ f('')
1284
@b.deco
1285
-def f() -> int: pass
+def f(a: str) -> int: pass
1286
x = 1 + 1
1287
[file b.py]
1288
-from typing import Any
+from typing import Callable, TypeVar
1289
import a
1290
-def deco(f: Any) -> Any:
+T = TypeVar('T')
1291
+def deco(f: Callable[[T], int]) -> Callable[[T], int]:
1292
a.x
1293
+ return f
1294
1295
1296
-- Scripts and __main__
0 commit comments