.. _simplifiable-condition:

simplifiable-condition / R1726
==============================

**Message emitted:**

Boolean condition '%s' may be simplified to '%s'

**Description:**

*Emitted when a boolean condition is able to be simplified.*

**Problematic code:**

.. literalinclude:: /data/messages/s/simplifiable-condition/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/s/simplifiable-condition/good.py
   :language: python



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