void () { final PyFile file = getTestFile(); final PyTargetExpression assignmentTarget = file.findTopLevelAttribute("x"); final String assignmentAnnotation = assignmentTarget.getAnnotationValue(); assertEquals("int", assignmentAnnotation); assertNotParsed(file); assertType("int", assignmentTarget, TypeEvalContext.codeInsightFallback(myFixture.getProject())); assertNotParsed(file); final PyTargetExpression typeDecTarget = file.findTopLevelAttribute("y"); final String typeDecAnnotation = typeDecTarget.getAnnotationValue(); assertEquals("str", typeDecAnnotation); assertNotParsed(file); assertType("str", typeDecTarget, TypeEvalContext.codeInsightFallback(myFixture.getProject())); assertNotParsed(file); }