.. _inconsistent-mro:

inconsistent-mro / E0240
========================

**Message emitted:**

``Inconsistent method resolution order for class %r``

**Description:**

*Used when a class has an inconsistent method resolution order.*

**Problematic code:**

.. literalinclude:: /data/messages/i/inconsistent-mro/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/i/inconsistent-mro/good.py
   :language: python





Created by the `classes <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/classes/class_checker.py>`__ checker.