File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2537,21 +2537,21 @@ reveal_type(command) # N: Revealed type is "__main__.Built[()]"
25372537[builtins fixtures/tuple.pyi]
25382538
25392539[case testTypeVarTupleSelfMappedPrefix]
2540- from typing import TypeVarTuple, Generic
2540+ from typing import TypeVarTuple, Generic, Unpack
25412541
25422542Ts = TypeVarTuple("Ts")
2543- class Base(Generic[*Ts ]):
2544- attr: tuple[*Ts ]
2543+ class Base(Generic[Unpack[Ts] ]):
2544+ attr: tuple[Unpack[Ts] ]
25452545
25462546 @property
2547- def prop(self) -> tuple[*Ts ]:
2547+ def prop(self) -> tuple[Unpack[Ts] ]:
25482548 return self.attr
25492549
2550- def meth(self) -> tuple[*Ts ]:
2550+ def meth(self) -> tuple[Unpack[Ts] ]:
25512551 return self.attr
25522552
25532553Ss = TypeVarTuple("Ss")
2554- class Derived(Base[str, *Ss ]):
2554+ class Derived(Base[str, Unpack[Ss] ]):
25552555 def test(self) -> None:
25562556 reveal_type(self.attr) # N: Revealed type is "Tuple[builtins.str, Unpack[Ss`1]]"
25572557 reveal_type(self.prop) # N: Revealed type is "Tuple[builtins.str, Unpack[Ss`1]]"
You can’t perform that action at this time.
0 commit comments