PY3.I0020

Suppressed Message

A message was triggered on a line, but suppressed explicitly by a disable= comment in the file. This message is not generated for messages that are ignored due to configuration settings. suppressed-message is simply a way to see messages that would be raised without the disable in your codebase. It should not be activated most of the time. See also useless-suppression if you want to see the message that are disabled for no reasons.

Noncompliant Code:

Copy
### This is a contrived example, to show how suppressed-message works.
### First we enable all messages
# pylint: enable=all
### Here we disable two messages so we get two warnings
# pylint: disable=locally-disabled, useless-suppression # [suppressed-message, suppressed-message]
### Here we disable a message, so we get a warning for suppressed-message again.
"A"  # pylint: disable=pointless-statement # [suppressed-message, suppressed-message]

Compliant Code:

Copy
"""Instead of a single string somewhere in the file, write a module docstring!"""

The content on this page is adapted from the Pylint User Guide, Copyright ©2003-2022, Logilab, PyCQA and contributors. All rights reserved. https://pylint.pycqa.org/en/latest/index.html#, and is used under the Python Software Foundation License Version 2. Examples, recipes, and other code in the Pylint documentation are additionally licensed under the Zero Clause BSD License.