.. _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.* .. caution:: This message is disabled by default. To enable it, add ``useless-suppression`` to the ``enable`` option. .. caution:: By default, this message will not fail the execution (pylint will return 0). To make pylint fail for this message use the ``--fail-on=I0021`` option or ``--fail-on=I`` to fail on all enabled informational messages. **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 `__ checker.