mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-85080 Add quick-fix to remove unused Type Parameters
(cherry picked from commit cbb9b8136d07350075a9af8b4bc5aaa8891edd73) GitOrigin-RevId: 81c1ddc810da8ce9619fdb679a26938bdecdb38e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7d46075b5f
commit
1b197eb884
@@ -103,4 +103,16 @@ public class PyRemoveUnusedLocalQuickFixTest extends PyQuickFixTestCase {
|
||||
public void testComprehensionIterator() {
|
||||
doQuickFixTest(PyUnusedLocalInspection.class, PyPsiBundle.message("INSP.unused.locals.replace.with.wildcard"));
|
||||
}
|
||||
|
||||
// PY-85080
|
||||
public void testRemoveUnusedTypeParameterInFunction() {
|
||||
runWithLanguageLevel(LanguageLevel.PYTHON312,
|
||||
() -> doQuickFixTest(PyUnusedLocalInspection.class, PyPsiBundle.message("QFIX.NAME.remove.type.parameter")));
|
||||
}
|
||||
|
||||
// PY-85080
|
||||
public void testRemoveUnusedTypeParameterInTypeAlias() {
|
||||
runWithLanguageLevel(LanguageLevel.PYTHON312,
|
||||
() -> doQuickFixTest(PyUnusedLocalInspection.class, PyPsiBundle.message("QFIX.NAME.remove.type.parameter")));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user