From 781d56deec9421bc50d8a257d905de0373851344 Mon Sep 17 00:00:00 2001 From: "andrey.matveev" Date: Wed, 25 Aug 2021 16:22:10 +0700 Subject: [PATCH] PY-49935 Fix test after fix internationalization for type hints illegal first parameter GitOrigin-RevId: 75e9239648869c264b242841fdd53486377a0e71 --- .../PyTypeHintsQuickFixTest/callableTwoElements.py | 2 +- .../callableTwoElementsParenthesizedAsFirst.py | 2 +- .../callableTwoElementsTupleAsFirst.py | 2 +- .../python/inspections/PyTypeHintsInspectionTest.java | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElements.py b/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElements.py index 83b756143144..330dc4aa32c7 100644 --- a/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElements.py +++ b/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElements.py @@ -1,3 +1,3 @@ from typing import Callable -e: Callable[int, str] \ No newline at end of file +e: Callable[int, str] \ No newline at end of file diff --git a/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsParenthesizedAsFirst.py b/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsParenthesizedAsFirst.py index 1dd339b654cb..6bd6ef798541 100644 --- a/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsParenthesizedAsFirst.py +++ b/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsParenthesizedAsFirst.py @@ -1,3 +1,3 @@ from typing import Callable -g: Callable[(int), str] \ No newline at end of file +g: Callable[(int), str] \ No newline at end of file diff --git a/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsTupleAsFirst.py b/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsTupleAsFirst.py index a679ce2888b1..9acaeff01a93 100644 --- a/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsTupleAsFirst.py +++ b/python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElementsTupleAsFirst.py @@ -1,3 +1,3 @@ from typing import Callable -g: Callable[(int, str), str] \ No newline at end of file +g: Callable[(int, str), str] \ No newline at end of file diff --git a/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java b/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java index 69120df97d91..2aff71ee9e66 100644 --- a/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java +++ b/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java @@ -721,11 +721,11 @@ public class PyTypeHintsInspectionTest extends PyInspectionTestCase { "c: Callable[[int, str], str]\n" + "\n" + "d: Callable[...]\n" + - "e: Callable[int, str]\n" + + "e: Callable[int, str]\n" + "f: Callable[int, str, str]\n" + - "g: Callable[(int, str), str]\n" + + "g: Callable[(int, str), str]\n" + "h: Callable[int]\n" + - "h: Callable[(int), str]\n" + + "h: Callable[(int), str]\n" + "\n" + "A1: TypeAlias = Callable[int]\n" + "A2: TypeAlias = 'Callable[int]'\n" +