.. _no-method-argument:

no-method-argument / E0211
==========================

**Message emitted:**

Method %r has no argument

**Description:**

*Used when a method which should have the bound instance as first argument has no argument defined.*

**Problematic code:**

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

**Correct code:**

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



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