void () { final PyFile current = getTestFile(getTestName(true) + "/main.py"); final PyFile external = getTestFile(getTestName(true) + "/lib.py"); final PyTargetExpression attr = current.findTopLevelAttribute("x"); assertNotNull(attr); final TypeEvalContext context = TypeEvalContext.codeAnalysis(myFixture.getProject(), current); assertType("int", attr, context); assertNotParsed(external); }