From c25b2fec9cd5acc63ff66ee418763d963df29ef4 Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Wed, 1 Mar 2023 15:36:26 +0200 Subject: [PATCH] PY-59241 Replace instantiations of PyGenericType with PyTypeVarTypeImpl The rest of the usages will be updated later on not to cause excess conflicts with a few big features currently being developed. Also removed a redundant constructor that can be replicated with toInstance/toClass methods. GitOrigin-RevId: d9af65d8ac865b1eb822607987f8195809f3ec23 --- .../python/codeInsight/typing/PyTypingTypeProvider.java | 2 +- .../src/com/jetbrains/python/psi/types/PyTypeParser.java | 4 ++-- .../src/com/jetbrains/python/psi/types/PyTypeVarTypeImpl.java | 4 ---- python/testSrc/com/jetbrains/python/Py3TypeTest.java | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/python/python-psi-impl/src/com/jetbrains/python/codeInsight/typing/PyTypingTypeProvider.java b/python/python-psi-impl/src/com/jetbrains/python/codeInsight/typing/PyTypingTypeProvider.java index 8acf1001d9b6..e693d91f8b12 100644 --- a/python/python-psi-impl/src/com/jetbrains/python/codeInsight/typing/PyTypingTypeProvider.java +++ b/python/python-psi-impl/src/com/jetbrains/python/codeInsight/typing/PyTypingTypeProvider.java @@ -1549,7 +1549,7 @@ public class PyTypingTypeProvider extends PyTypeProviderWithCustomContext