mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Disabled compatiblity inspection for backported 'typing' (PY-18880)
This commit is contained in:
@@ -62,6 +62,7 @@ import java.util.List;
|
||||
public class PyCompatibilityInspection extends PyInspection {
|
||||
public static List<String> BACKPORTED_PACKAGES = ImmutableList.<String>builder()
|
||||
.add("enum")
|
||||
.add("typing")
|
||||
.build();
|
||||
|
||||
public static final int LATEST_INSPECTION_VERSION = 1;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
import typing
|
||||
@@ -181,6 +181,11 @@ public class PyCompatibilityInspectionTest extends PyTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-18880
|
||||
public void testBackportedTyping() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest(@NotNull LanguageLevel level) {
|
||||
runWithLanguageLevel(level, this::doTest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user