super(A, B) への呼び出しが次の要件を満たさない場合に報告します。

例:


class Figure:
    def color(self):
        pass


class Rectangle(Figure):
    def color(self):
        pass


class Square(Figure):
    def color(self):
        return super(Rectangle, self).color() # Square は Rectangle のインスタンスまたはサブクラスではありません

この問題は、SquareRectangle クラスのインスタンスにすることで解決できます。