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


**Correct code:**

.. literalinclude:: /data/messages/b/bad-mcs-classmethod-argument/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.