.. _bad-mcs-classmethod-argument:

bad-mcs-classmethod-argument / C0204
====================================

**Message emitted:**

``Metaclass class method %s should have %s as first argument``

**Description:**

*Used when a metaclass class method has a first argument named differently than the value specified in valid-metaclass-classmethod-first-arg option (default to "mcs"), recommended to easily differentiate them from regular instance methods.*

**Problematic code:**

.. literalinclude:: /data/messages/b/bad-mcs-classmethod-argument/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/b/bad-mcs-classmethod-argument/good.py
   :language: python





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