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.

Correct code:

def foo():
    """Docstring."""
    return

Problematic code:

def foo():  # [bad-docstring-quotes]
    'Docstring.'
    return

Additional details:

From PEP 257:

"For consistency, always use """triple double quotes""" around docstrings."

Related links:

Note

This message is emitted by the optional 'docstyle' checker which requires the pylint.extensions.docstyle plugin to be loaded.

Created by the docstyle checker.