You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-data/unit/check-functions.test
+6-10Lines changed: 6 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1474,13 +1474,13 @@ from mypy_extensions import Arg, StarArg, KwArg
1474
1474
1475
1475
def WrongArg(x, y): return y
1476
1476
1477
-
def a(f: Callable[[WrongArg('x', int)], int]): pass # E: Parse error before (: Unknown argument constructor WrongArg # E: Parse error before end of line
1478
-
def b(f: Callable[[Arg('x', 1)], int]): pass # E: Parse error before numeric literal # E: Parse error before end of line
1479
-
def c(f: Callable[[StarArg('x', int)], int]): pass # E: Parse error before "int": Unexpected argument for argument constructor # E: Parse error before end of line
def b(f: Callable[[Arg('x', 1)], int]): pass # E: invalid type comment or annotation
1479
+
def c(f: Callable[[StarArg('x', int)], int]): pass # E: Too many arguments for argument constructor
1480
1480
def d(f: Callable[[StarArg(int)], int]): pass # ok
1481
1481
def e(f: Callable[[StarArg(), KwArg()], int]): pass # ok
1482
1482
def g(f: Callable[[Arg(name='x', typ=int)], int]): pass # ok
1483
-
def h(f: Callable[[Arg(gnome='x', typ=int)], int]): pass # E: Parse error before "gnome": Unexpected argument "gnome" for argument constructor # E: Parse error before end of line
0 commit comments