.. _bad-dunder-name:

bad-dunder-name / W3201
=======================

**Message emitted:**

Bad or misspelled dunder method name %s.

**Description:**

*Used when a dunder method is misspelled or defined with a name not within the predefined list of dunder names.*

**Problematic code:**

.. literalinclude:: /data/messages/b/bad-dunder-name/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/b/bad-dunder-name/good.py
   :language: python




.. note::
  This message is emitted by the optional :ref:`'dunder'<pylint.extensions.dunder>`
   checker which requires the ``pylint.extensions.dunder`` plugin to be loaded.

Created by the `dunder <https://github.com/PyCQA/pylint/blob/main/pylint/extensions/dunder.py>`__ checker.