@@ -1236,6 +1236,7 @@ from typing import Generic
12361236from typing_extensions import TypeVarTuple, Unpack
12371237Ts = TypeVarTuple('Ts')
12381238class D(Generic[Unpack[Ts]]): ...
1239+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
12391240[out]
12401241from typing import Generic
12411242from typing_extensions import TypeVarTuple, Unpack
@@ -1244,11 +1245,14 @@ Ts = TypeVarTuple('Ts')
12441245
12451246class D(Generic[Unpack[Ts]]): ...
12461247
1248+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
1249+
12471250[case testGenericClassTypeVarTuple_semanal]
12481251from typing import Generic
12491252from typing_extensions import TypeVarTuple, Unpack
12501253Ts = TypeVarTuple('Ts')
12511254class D(Generic[Unpack[Ts]]): ...
1255+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
12521256[out]
12531257from typing import Generic
12541258from typing_extensions import TypeVarTuple, Unpack
@@ -1257,30 +1261,38 @@ Ts = TypeVarTuple('Ts')
12571261
12581262class D(Generic[Unpack[Ts]]): ...
12591263
1264+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
1265+
12601266[case testGenericClassTypeVarTuplePy311]
12611267# flags: --python-version=3.11
12621268from typing import Generic, TypeVarTuple
12631269Ts = TypeVarTuple('Ts')
12641270class D(Generic[*Ts]): ...
1271+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
12651272[out]
12661273from typing import Generic, TypeVarTuple
12671274
12681275Ts = TypeVarTuple('Ts')
12691276
12701277class D(Generic[*Ts]): ...
12711278
1279+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
1280+
12721281[case testGenericClassTypeVarTuplePy311_semanal]
12731282# flags: --python-version=3.11
12741283from typing import Generic, TypeVarTuple
12751284Ts = TypeVarTuple('Ts')
12761285class D(Generic[*Ts]): ...
1286+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
12771287[out]
12781288from typing import Generic, TypeVarTuple
12791289
12801290Ts = TypeVarTuple('Ts')
12811291
12821292class D(Generic[*Ts]): ...
12831293
1294+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
1295+
12841296[case testObjectBaseClass]
12851297class A(object): ...
12861298[out]
0 commit comments