@@ -1036,11 +1036,16 @@ y: C
10361036
10371037[case testTypeVarPreserved]
10381038tv = TypeVar('tv')
1039+ ps = ParamSpec('ps')
1040+ tvt = TypeVarTuple('tvt')
10391041
10401042[out]
10411043from typing import TypeVar
1044+ from typing_extensions import ParamSpec, TypeVarTuple
10421045
10431046tv = TypeVar('tv')
1047+ ps = ParamSpec('ps')
1048+ tvt = TypeVarTuple('tvt')
10441049
10451050[case testTypeVarArgsPreserved]
10461051tv = TypeVar('tv', int, str)
@@ -1052,29 +1057,37 @@ tv = TypeVar('tv', int, str)
10521057
10531058[case testTypeVarNamedArgsPreserved]
10541059tv = TypeVar('tv', bound=bool, covariant=True)
1060+ ps = ParamSpec('ps', bound=bool, covariant=True)
10551061
10561062[out]
10571063from typing import TypeVar
1064+ from typing_extensions import ParamSpec
10581065
10591066tv = TypeVar('tv', bound=bool, covariant=True)
1067+ ps = ParamSpec('ps', bound=bool, covariant=True)
10601068
10611069[case TypeVarImportAlias]
1062- from typing import TypeVar as t_TV
1063- from typing_extensions import TypeVar as te_TV
1070+ from typing import TypeVar as t_TV, ParamSpec as t_PS
1071+ from typing_extensions import TypeVar as te_TV, TypeVarTuple as te_TVT
10641072from x import TypeVar as x_TV
10651073
10661074T = t_TV('T')
10671075U = te_TV('U')
10681076V = x_TV('V')
10691077
1078+ PS = t_PS('PS')
1079+ TVT = te_TVT('TVT')
1080+
10701081[out]
10711082from _typeshed import Incomplete
1072- from typing import TypeVar as t_TV
1073- from typing_extensions import TypeVar as te_TV
1083+ from typing import ParamSpec as t_PS, TypeVar as t_TV
1084+ from typing_extensions import TypeVar as te_TV, TypeVarTuple as te_TVT
10741085
10751086T = t_TV('T')
10761087U = te_TV('U')
10771088V: Incomplete
1089+ PS = t_PS('PS')
1090+ TVT = te_TVT('TVT')
10781091
10791092[case testTypeVarFromImportAlias]
10801093import typing as t
@@ -1085,6 +1098,9 @@ T = t.TypeVar('T')
10851098U = te.TypeVar('U')
10861099V = x.TypeVar('V')
10871100
1101+ PS = t.ParamSpec('PS')
1102+ TVT = te.TypeVarTuple('TVT')
1103+
10881104[out]
10891105import typing as t
10901106import typing_extensions as te
@@ -1093,6 +1109,8 @@ from _typeshed import Incomplete
10931109T = t.TypeVar('T')
10941110U = te.TypeVar('U')
10951111V: Incomplete
1112+ PS = t.ParamSpec('PS')
1113+ TVT = te.TypeVarTuple('TVT')
10961114
10971115[case testTypeAliasPreserved]
10981116alias = str
0 commit comments