.. _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.*


**Correct code:**

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

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


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