mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-16412 A more complex case of a type comment for unpacked assignment target
This commit is contained in:
committed by
Andrey Vlasovskikh
parent
085c4e063a
commit
e488dcd690
+3
@@ -0,0 +1,3 @@
|
||||
def func():
|
||||
((var, _), _) = ('foo', 1), 2
|
||||
v<caret>ar
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
def func():
|
||||
((var, _), _) = ('foo', 1), 2 # type: ((str, int), int)
|
||||
var
|
||||
+4
@@ -74,6 +74,10 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
|
||||
doTestTypeComment();
|
||||
}
|
||||
|
||||
public void testTypeCommentComplexUnpackedAssignmentTarget() {
|
||||
doTestTypeComment();
|
||||
}
|
||||
|
||||
public void testTypeCommentLocalChainedAssignmentTarget() {
|
||||
doTestTypeComment();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user