mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-16412 Prohibit annotations for structural types
since they cannot be expression in PEP 484 compatible format (yet).
This commit is contained in:
committed by
Andrey Vlasovskikh
parent
7af0d59f92
commit
eedca22cbb
+8
@@ -215,6 +215,14 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
|
||||
doAnnotationTest();
|
||||
}
|
||||
|
||||
public void testAnnotationNotPossibleForStructuralType() {
|
||||
doAnnotationTest();
|
||||
}
|
||||
|
||||
public void testAnnotationNotPossibleForNestedStructuralType() {
|
||||
doAnnotationTest();
|
||||
}
|
||||
|
||||
private void doAnnotationTest() {
|
||||
doTest(LanguageLevel.PYTHON36);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user