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
@@ -1799,10 +1800,23 @@ L = Callable[[Arg(name='x', type=int)], int] # ok
1799
1800
# I have commented out the following test because I don't know how to expect the "defined here" note part of the error.
1800
1801
# M = Callable[[Arg(gnome='x', type=int)], int] E: Invalid type alias: expression is not a valid type E: Unexpected keyword argument "gnome" for "Arg"
1801
1802
N = Callable[[Arg(name=None, type=int)], int] # ok
1802
-
O = Callable[[List[Arg(int)]], int] # E: Invalid type alias: expression is not a valid type # E: Value of type "int" is not indexable # E: Type expected within [...]
1803
+
O = Callable[[List[Arg(int)]], int] # E: Invalid type alias: expression is not a valid type \
1804
+
# E: Value of type "int" is not indexable \
1805
+
# E: Type expected within [...]
1803
1806
P = Callable[[mypy_extensions.VarArg(int)], int] # ok
1804
-
Q = Callable[[Arg(int, type=int)], int] # E: Invalid type alias: expression is not a valid type # E: Value of type "int" is not indexable # E: "Arg" gets multiple values for keyword argument "type"
1805
-
R = Callable[[Arg(int, 'x', name='y')], int] # E: Invalid type alias: expression is not a valid type # E: Value of type "int" is not indexable # E: "Arg" gets multiple values for keyword argument "name"
1807
+
Q = Callable[[Arg(int, type=int)], int] # E: Invalid type alias: expression is not a valid type \
1808
+
# E: Value of type "int" is not indexable \
1809
+
# E: "Arg" gets multiple values for keyword argument "type"
1810
+
R = Callable[[Arg(int, 'x', name='y')], int] # E: Invalid type alias: expression is not a valid type \
1811
+
# E: Value of type "int" is not indexable \
1812
+
# E: "Arg" gets multiple values for keyword argument "name"
0 commit comments