mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-16412 Generate type hints in type comments for variables
Cases with unpacking are still unsupported, though.
This commit is contained in:
committed by
Andrey Vlasovskikh
parent
54574eac34
commit
ec50917ab3
+24
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user