PY-16412 Generate type hints in type comments for variables

Cases with unpacking are still unsupported, though.
This commit is contained in:
Mikhail Golubev
2018-02-05 21:41:59 +03:00
committed by Andrey Vlasovskikh
parent 54574eac34
commit ec50917ab3
16 changed files with 90 additions and 3 deletions
@@ -33,6 +33,30 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
doTestAnnotation();
}
public void testTypeCommentLocalSimpleAssignmentTarget() {
doTestTypeComment();
}
public void testTypeCommentLocalSimpleAssignmentTargetInParentheses() {
doTestTypeComment();
}
public void testTypeCommentLocalUnpackedAssignmentTarget() {
doTestTypeComment();
}
public void testTypeCommentLocalChainedAssignmentTarget() {
doTestTypeComment();
}
public void testTypeCommentLocalForTarget() {
doTestTypeComment();
}
public void testTypeCommentLocalWithTarget() {
doTestTypeComment();
}
private void doTestAnnotation() {
doTest(LanguageLevel.PYTHON36);
}