.. _unneeded-not:

unneeded-not / C0113
====================

**Message emitted:**

Consider changing "%s" to "%s"

**Description:**

*Used when a boolean expression contains an unneeded negation.*

**Problematic code:**

.. literalinclude:: /data/messages/u/unneeded-not/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/u/unneeded-not/good.py
   :language: python



Created by the `refactoring <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/refactoring/not_checker.py>`__ checker.