mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-16412 Fix NPE when a target expression is annotated with explicit Any
This commit is contained in:
committed by
Andrey Vlasovskikh
parent
073510924a
commit
25710b0fe1
@@ -777,6 +777,17 @@ public class PyTypingTest extends PyTestCase {
|
||||
"expr = x");
|
||||
}
|
||||
|
||||
// PY-16412
|
||||
public void testLocalVariableAnnotationAheadOfTimeExplicitAny() {
|
||||
doTest("Any",
|
||||
"from typing import Any\n" +
|
||||
"\n" +
|
||||
"def func(x):\n" +
|
||||
" var: Any\n" +
|
||||
" var = x\n" +
|
||||
" expr = var\n");
|
||||
}
|
||||
|
||||
// PY-21864
|
||||
public void testClassAttributeAnnotationAheadOfTimeInAnotherFile() {
|
||||
doMultiFileStubAwareTest("int",
|
||||
|
||||
Reference in New Issue
Block a user