PY-16412 Support type hints for instance attributes using type comments

This commit is contained in:
Mikhail Golubev
2018-02-05 21:41:59 +03:00
committed by Andrey Vlasovskikh
parent 1d71f182c1
commit 3c74966e95
6 changed files with 79 additions and 26 deletions
@@ -91,11 +91,15 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
}
public void testTypeCommentInstanceAttribute() {
doTestAnnotation();
doTestTypeComment();
}
public void testTypeCommentInstanceAttributePy3() {
doTest(LanguageLevel.PYTHON30);
}
public void testTypeCommentInstanceAttributeDocstring() {
doTestAnnotation();
doTestTypeComment();
}
public void testTypeCommentLocalSimpleAssignmentTarget() {