mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-21645 Disable some inspections in function type comments
This commit is contained in:
@@ -351,4 +351,17 @@ public class PythonInspectionsTest extends PyTestCase {
|
||||
public void testPyDunderSlotsInspection() {
|
||||
runWithLanguageLevel(LanguageLevel.PYTHON30, () -> doHighlightingTest(PyDunderSlotsInspection.class));
|
||||
}
|
||||
|
||||
// PY-21645
|
||||
public void testInspectionsDisabledInFunctionTypeComments() {
|
||||
myFixture.enableInspections(PyIncorrectDocstringInspection.class);
|
||||
myFixture.enableInspections(PyMissingOrEmptyDocstringInspection.class);
|
||||
myFixture.enableInspections(PySingleQuotedDocstringInspection.class);
|
||||
myFixture.enableInspections(PyByteLiteralInspection.class);
|
||||
myFixture.enableInspections(PyMandatoryEncodingInspection.class);
|
||||
myFixture.enableInspections(PyNonAsciiCharInspection.class);
|
||||
|
||||
myFixture.configureByFile("inspections/" + getTestName(false) + "/test.py");
|
||||
myFixture.checkHighlighting(true, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user