void () { runWithLanguageLevel( LanguageLevel.PYTHON34, () -> { final PyExpression expression = parseExpr(""" class A: pass expr = A"""); for (TypeEvalContext context : getTypeEvalContexts(expression)) { final PyType type = context.getType(expression); assertInstanceOf(type, PyClassType.class); final PyClassType objectType = PyBuiltinCache.getInstance(expression).getObjectType(); assertNotNull(objectType); assertEquals(Collections.singletonList(objectType.toClass()), ((PyClassType)type).getSuperClassTypes(context)); } } ); }