.. _bad-mcs-method-argument:

bad-mcs-method-argument / C0203
===============================

**Message emitted:**

Metaclass method %s should have %s as first argument

**Description:**

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


**Correct code:**

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