PY-16412 Support type hints for instance attributes using annotations

This commit is contained in:
Mikhail Golubev
2018-02-05 21:41:59 +03:00
committed by Andrey Vlasovskikh
parent af24ba5f20
commit 1d71f182c1
13 changed files with 174 additions and 45 deletions
@@ -50,6 +50,14 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
doNegativeTest();
}
public void testNotSuggestedInstanceAttributeWithAnnotation() {
doNegativeTest();
}
public void testNotSuggestedInstanceAttributeWithTypeComment() {
doNegativeTest();
}
public void testAnnotationLocalSimpleAssignmentTarget() {
doTestAnnotation();
}
@@ -74,6 +82,22 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
doTestAnnotation();
}
public void testAnnotationInstanceAttribute() {
doTestAnnotation();
}
public void testAnnotationInstanceAttributeDocstring() {
doTestAnnotation();
}
public void testTypeCommentInstanceAttribute() {
doTestAnnotation();
}
public void testTypeCommentInstanceAttributeDocstring() {
doTestAnnotation();
}
public void testTypeCommentLocalSimpleAssignmentTarget() {
doTestTypeComment();
}