.. _inherit-non-class:

inherit-non-class / E0239
=========================

**Message emitted:**

Inheriting %r, which is not a class.

**Description:**

*Used when a class inherits from something which is not a class.*

**Problematic code:**

.. literalinclude:: /data/messages/i/inherit-non-class/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/i/inherit-non-class/good.py
   :language: python



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