.. _invalid-metaclass:

invalid-metaclass / E1139
=========================

**Message emitted:**

Invalid metaclass %r used

**Description:**

*Emitted whenever we can detect that a class is using, as a metaclass, something which might be invalid for using as a metaclass.*


**Correct code:**

.. literalinclude:: /data/messages/i/invalid-metaclass/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 `typecheck <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/typecheck.py>`__ checker.