.. _bad-docstring-quotes:

bad-docstring-quotes / C0198
============================

**Message emitted:**

Bad docstring quotes in %s, expected """, given %s

**Description:**

*Used when a docstring does not have triple double quotes.*

**Problematic code:**

.. literalinclude:: /data/messages/b/bad-docstring-quotes/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/b/bad-docstring-quotes/good.py
   :language: python

**Additional details:**

From `PEP 257`:
    "For consistency, always use ``"""triple double quotes"""`` around docstrings."

**Related links:**

- `PEP 257 – Docstring Conventions <https://peps.python.org/pep-0257/#specification>`_


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

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