void () { myFixture.copyDirectoryToProject(getTestName(true), ""); final PsiManager manager = PsiManager.getInstance(myFixture.getProject()); final PyFile originFile = (PyFile)manager.findFile(myFixture.findFileInTempDir("a.py")); final PyFile libFile = (PyFile)manager.findFile(myFixture.findFileInTempDir("mod.py")); final PyTargetExpression instance = originFile.findTopLevelAttribute("expr"); assertType("tuple[int, None, str]", instance, TypeEvalContext.codeAnalysis(myFixture.getProject(), originFile)); assertNotParsed(libFile); }