.. _no-self-argument:

no-self-argument / E0213
========================

**Message emitted:**

Method %r should have "self" as first argument

**Description:**

*Used when a method has an attribute different the "self" as first argument. This is considered as an error since this is a so common convention that you shouldn't break it!*

**Problematic code:**

.. literalinclude:: /data/messages/n/no-self-argument/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/n/no-self-argument/good.py
   :language: python



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