void () { final PyFile file = getTestFile(); final PyClass pyClass = file.findTopLevelClass("MyClass"); final TypeEvalContext context = TypeEvalContext.codeInsightFallback(myFixture.getProject()); final PyTargetExpression classAttr = pyClass.findClassAttribute("foo", false, context); assertType("str", classAttr, context); final PyTargetExpression instAttr = pyClass.findInstanceAttribute("bar", false); assertType("int", instAttr, context); assertNotParsed(file); }