Update abstract class inspection to correctly process protocols (PY-26628)

This commit is contained in:
Semyon Proshev
2018-02-05 20:58:30 +03:00
parent 68a7b6040e
commit 6b3f10f5e5
4 changed files with 131 additions and 1 deletions
@@ -65,6 +65,11 @@ public class PyAbstractClassInspectionTest extends PyInspectionTestCase {
doTest();
}
// PY-26628
public void testTypingProtocolSubclass() {
runWithLanguageLevel(LanguageLevel.PYTHON37, this::doTest);
}
@NotNull
@Override
protected Class<? extends PyInspection> getInspectionClass() {