.. _multiple-constructor-doc:

multiple-constructor-doc / W9005
================================

**Message emitted:**

"%s" has constructor parameters documented in class and __init__

**Description:**

*Please remove parameter declarations in the class or constructor.*

**Problematic code:**

.. literalinclude:: /data/messages/m/multiple-constructor-doc/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/m/multiple-constructor-doc/good.py
   :language: python

**Additional details:**

Both docstrings are acceptable but not both at the same time.



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

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