.. _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.*


**Correct code:**

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

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


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