diff --git a/python/python-psi-impl/resources/messages/PyPsiBundle.properties b/python/python-psi-impl/resources/messages/PyPsiBundle.properties index bc3a6622b7a0..df0c9ce327ef 100644 --- a/python/python-psi-impl/resources/messages/PyPsiBundle.properties +++ b/python/python-psi-impl/resources/messages/PyPsiBundle.properties @@ -1209,7 +1209,7 @@ INSP.type.hints.expected.a.type=Expected a type INSP.type.hints.metaclass.cannot.be.generic=Metaclass cannot be generic INSP.type.hints.unbound.type.variable=Unbound type variable INSP.type.hints.some.type.variables.are.used.by.an.outer.scope=Some type variables ({0}) are used by an outer scope -INSP.type.hints.at.most.one.unpacked.tuple=Type argument list can have at most one unpacked TypeVarTuple or tuple +INSP.type.hints.at.most.one.unpacked.tuple=Type argument list can have at most one unpacked TypeVarTuple or unbounded tuple INSP.type.hints.cannot.use.covariant.in.function.param=Covariant type variable cannot be used in parameter type INSP.type.hints.cannot.use.contravariant.in.return.type=Contravariant type variable cannot be used in function return type QFIX.remove.function.annotations=Remove function annotations diff --git a/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java b/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java index 50a1174dba4b..22ad6ede1cb8 100644 --- a/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java +++ b/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java @@ -2816,10 +2816,10 @@ public class PyTypeHintsInspectionTest extends PyInspectionTestCase { doTestByText(""" from typing import TypeVarTuple, Unpack - t1: tuple[*tuple[str, ...], *tuple[int, ...]] - t2: tuple[*tuple[str, *tuple[str, ...]], *tuple[int, ...]] - t3: tuple[Unpack[tuple[str, ...]], Unpack[tuple[int, ...]]] - t4: tuple[Unpack[tuple[str, Unpack[tuple[str, ...]]]], Unpack[tuple[int, ...]]] + t1: tuple[*tuple[str, ...], *tuple[int, ...]] + t2: tuple[*tuple[str, *tuple[str, ...]], *tuple[int, ...]] + t3: tuple[Unpack[tuple[str, ...]], Unpack[tuple[int, ...]]] + t4: tuple[Unpack[tuple[str, Unpack[tuple[str, ...]]]], Unpack[tuple[int, ...]]] # > An unpacked TypeVarTuple counts as an unbounded tuple in the context of this rule @@ -2828,7 +2828,7 @@ public class PyTypeHintsInspectionTest extends PyInspectionTestCase { def func(t: tuple[*Ts]): t5: tuple[*tuple[str], *Ts] - t6: tuple[*tuple[str, ...], *Ts] + t6: tuple[*tuple[str, ...], *Ts] """); }