From d29d55476e72cb53c21066b84c849e8693d8e33c Mon Sep 17 00:00:00 2001 From: Daniil Kalinin Date: Fri, 20 Sep 2024 16:38:14 +0200 Subject: [PATCH] PY-75760 - adjust `testTypeVarParameterizedConstraints` test Sacrifice this old test for a good cause. The inferred type of `my_list_t1` is now `List[null]` which matches with pyright - it also has no complaints in the changed fragment GitOrigin-RevId: 2176ffa69c6a24ec55344f4294e04542185ca7e7 --- .../python/inspections/PyTypeHintsInspectionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java b/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java index d03d50e095ee..31cb9a45ced5 100644 --- a/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java +++ b/python/testSrc/com/jetbrains/python/inspections/PyTypeHintsInspectionTest.java @@ -91,8 +91,8 @@ public class PyTypeHintsInspectionTest extends PyInspectionTestCase { T11 = TypeVar('T11', my_int, my_str) my_list_t1 = List[T1] - T22 = TypeVar('T22', int, my_list_t1) - T33 = TypeVar('T33', bound=my_list_t1) + T22 = TypeVar('T22', int, my_list_t1) + T33 = TypeVar('T33', bound=my_list_t1) my_list_int = List[int] T44 = TypeVar('T44', int, my_list_int)