PY-16412 A more complex case of a type comment for unpacked assignment target

This commit is contained in:
Mikhail Golubev
2018-02-05 21:41:59 +03:00
committed by Andrey Vlasovskikh
parent 085c4e063a
commit e488dcd690
3 changed files with 10 additions and 0 deletions
@@ -0,0 +1,3 @@
def func():
((var, _), _) = ('foo', 1), 2
v<caret>ar
@@ -0,0 +1,3 @@
def func():
((var, _), _) = ('foo', 1), 2 # type: ((str, int), int)
var
@@ -74,6 +74,10 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
doTestTypeComment();
}
public void testTypeCommentComplexUnpackedAssignmentTarget() {
doTestTypeComment();
}
public void testTypeCommentLocalChainedAssignmentTarget() {
doTestTypeComment();
}