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

**Problematic code:**

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

**Correct code:**

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





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