@@ -255,7 +255,7 @@ def func_a1(
255255 a: TA1,
256256 b: TA1[float],
257257 c: TA1[float, float],
258- d: TA1[float, float, float], # E: Bad number of arguments for type alias, expected between 0 and 2, given: 3
258+ d: TA1[float, float, float], # E: Bad number of arguments for type alias, expected between 0 and 2, given 3
259259) -> None:
260260 reveal_type(a) # N: Revealed type is "builtins.dict[builtins.int, builtins.str]"
261261 reveal_type(b) # N: Revealed type is "builtins.dict[builtins.float, builtins.str]"
@@ -269,7 +269,7 @@ def func_a2(
269269 b: TA2[float],
270270 c: TA2[float, float],
271271 d: TA2[float, float, float],
272- e: TA2[float, float, float, float], # E: Bad number of arguments for type alias, expected between 1 and 3, given: 4
272+ e: TA2[float, float, float, float], # E: Bad number of arguments for type alias, expected between 1 and 3, given 4
273273) -> None:
274274 reveal_type(a) # N: Revealed type is "Tuple[Any, builtins.int, builtins.str]"
275275 reveal_type(b) # N: Revealed type is "Tuple[builtins.float, builtins.int, builtins.str]"
@@ -284,7 +284,7 @@ def func_a3(
284284 b: TA3[float],
285285 c: TA3[float, float],
286286 d: TA3[float, float, float],
287- e: TA3[float, float, float, float], # E: Bad number of arguments for type alias, expected between 1 and 3, given: 4
287+ e: TA3[float, float, float, float], # E: Bad number of arguments for type alias, expected between 1 and 3, given 4
288288) -> None:
289289 reveal_type(a) # N: Revealed type is "Union[builtins.dict[Any, builtins.int], builtins.list[builtins.str]]"
290290 reveal_type(b) # N: Revealed type is "Union[builtins.dict[builtins.float, builtins.int], builtins.list[builtins.str]]"
@@ -296,10 +296,10 @@ TA4 = Tuple[T1, T4, T2]
296296
297297def func_a4(
298298 a: TA4, # E: Missing type parameters for generic type "TA4"
299- b: TA4[float], # E: Bad number of arguments for type alias, expected between 2 and 3, given: 1
299+ b: TA4[float], # E: Bad number of arguments for type alias, expected between 2 and 3, given 1
300300 c: TA4[float, float],
301301 d: TA4[float, float, float],
302- e: TA4[float, float, float, float], # E: Bad number of arguments for type alias, expected between 2 and 3, given: 4
302+ e: TA4[float, float, float, float], # E: Bad number of arguments for type alias, expected between 2 and 3, given 4
303303) -> None:
304304 reveal_type(a) # N: Revealed type is "Tuple[Any, Any, builtins.int]"
305305 reveal_type(b) # N: Revealed type is "Tuple[Any, Any, builtins.int]"
@@ -323,7 +323,7 @@ def func_b1(
323323 a: TB1,
324324 b: TB1[[float]],
325325 c: TB1[[float], [float]],
326- d: TB1[[float], [float], [float]], # E: Bad number of arguments for type alias, expected between 0 and 2, given: 3
326+ d: TB1[[float], [float], [float]], # E: Bad number of arguments for type alias, expected between 0 and 2, given 3
327327) -> None:
328328 reveal_type(a) # N: Revealed type is "__main__.ClassB1[[builtins.int, builtins.str], [*Any, **Any]]"
329329 reveal_type(b) # N: Revealed type is "__main__.ClassB1[[builtins.float], [*Any, **Any]]"
@@ -337,7 +337,7 @@ def func_b2(
337337 a: TB2, # E: Missing type parameters for generic type "TB2"
338338 b: TB2[[float]],
339339 c: TB2[[float], [float]],
340- d: TB2[[float], [float], [float]], # E: Bad number of arguments for type alias, expected between 1 and 2, given: 3
340+ d: TB2[[float], [float], [float]], # E: Bad number of arguments for type alias, expected between 1 and 2, given 3
341341) -> None:
342342 reveal_type(a) # N: Revealed type is "__main__.ClassB2[Any, [builtins.int, builtins.str]]"
343343 reveal_type(b) # N: Revealed type is "__main__.ClassB2[[builtins.float], [builtins.int, builtins.str]]"
0 commit comments