pylint-errors

E0240 (inconsistent-mro)

:x: Problematic code:

class A:
    pass


class B(A):
    pass


class C(A, B):
    pass

:heavy_check_mark: Correct code:

class A:
    pass


class B(A):
    pass


class C(B):  # or B, A or A but not A, B
    pass

Rationale:

Used when a class has an inconsistent method resolution order.