PY-45588 Add necessary imports on completing methods of superclasses to override

I had to move addImports to PyClassRefactoringUtil because PySuperMethodCompletionContributor
resides in python-psi-impl and, thus, has no access to PyOverrideImplementUtil.

GitOrigin-RevId: cf2ac19da779977649144b2477bac3f8ae78bbcd
This commit is contained in:
Mikhail Golubev
2023-03-09 17:19:32 +02:00
committed by intellij-monorepo-bot
parent c7bba04743
commit a2af264b63
7 changed files with 80 additions and 93 deletions

View File

@@ -331,6 +331,11 @@ public abstract class PythonCommonCompletionTest extends PythonCommonTestCase {
runWithLanguageLevel(LanguageLevel.getLatest(), this::doTest);
}
// PY-45588
public void testSuperMethodWithAnnotationInsertingImports() {
runWithLanguageLevel(LanguageLevel.getLatest(), this::doMultiFileTest);
}
public void testSuperMethodWithCommentAnnotation() {
doTest();
}