.. _useless-suppression:

useless-suppression / I0021
===========================

**Message emitted:**

``Useless suppression of %s``

**Description:**

*Reported when a message is explicitly disabled for a line or a block of code, but never triggered.*

**Problematic code:**

.. literalinclude:: /data/messages/u/useless-suppression/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/u/useless-suppression/good.py
   :language: python





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