@@ -1225,6 +1225,7 @@ from typing import Generic
12251225from typing_extensions import TypeVarTuple, Unpack
12261226Ts = TypeVarTuple('Ts')
12271227class D(Generic[Unpack[Ts]]): ...
1228+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
12281229[out]
12291230from typing import Generic
12301231from typing_extensions import TypeVarTuple, Unpack
@@ -1233,11 +1234,14 @@ Ts = TypeVarTuple('Ts')
12331234
12341235class D(Generic[Unpack[Ts]]): ...
12351236
1237+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
1238+
12361239[case testGenericClassTypeVarTuple_semanal]
12371240from typing import Generic
12381241from typing_extensions import TypeVarTuple, Unpack
12391242Ts = TypeVarTuple('Ts')
12401243class D(Generic[Unpack[Ts]]): ...
1244+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
12411245[out]
12421246from typing import Generic
12431247from typing_extensions import TypeVarTuple, Unpack
@@ -1246,30 +1250,38 @@ Ts = TypeVarTuple('Ts')
12461250
12471251class D(Generic[Unpack[Ts]]): ...
12481252
1253+ def callback(func: Callable[[Unpack[Ts]], None], *args: Unpack[Ts]) -> None: ...
1254+
12491255[case testGenericClassTypeVarTuplePy311]
12501256# flags: --python-version=3.11
12511257from typing import Generic, TypeVarTuple
12521258Ts = TypeVarTuple('Ts')
12531259class D(Generic[*Ts]): ...
1260+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
12541261[out]
12551262from typing import Generic, TypeVarTuple
12561263
12571264Ts = TypeVarTuple('Ts')
12581265
12591266class D(Generic[*Ts]): ...
12601267
1268+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
1269+
12611270[case testGenericClassTypeVarTuplePy311_semanal]
12621271# flags: --python-version=3.11
12631272from typing import Generic, TypeVarTuple
12641273Ts = TypeVarTuple('Ts')
12651274class D(Generic[*Ts]): ...
1275+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
12661276[out]
12671277from typing import Generic, TypeVarTuple
12681278
12691279Ts = TypeVarTuple('Ts')
12701280
12711281class D(Generic[*Ts]): ...
12721282
1283+ def callback(func: Callable[[*Ts], None], *args: *Ts) -> None: ...
1284+
12731285[case testObjectBaseClass]
12741286class A(object): ...
12751287[out]
0 commit comments