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 af39755 commit 863cabbCopy full SHA for 863cabb
test-data/unit/check-assert-type-fail.test
@@ -26,3 +26,8 @@ class array:
26
def f(si: arr.array[int]):
27
typing.assert_type(si, int) # E: Expression is of type "array[int]", not "int"
28
[builtins fixtures/tuple.pyi]
29
+
30
+[case testAssertTypeFailCallableArgKind]
31
+from typing import assert_type, Callable
32
+def myfunc(arg: int) -> None: pass
33
+assert_type(myfunc, Callable[[int], None]) # E: Expression is of type "Callable[[Arg(int, 'arg')], None]", not "Callable[[int], None]"
0 commit comments