void () { final PyFile file = getTestFile(); final PyFunction func = file.findTopLevelFunction("func"); final PyNamedParameter param = func.getParameterList().findParameterByName("x"); final String annotation = param.getAnnotationValue(); assertEquals("int", annotation); assertNotParsed(file); final TypeEvalContext context = TypeEvalContext.codeInsightFallback(myFixture.getProject()); assertType("int", param, context); assertNotParsed(file); }