.. _condition-evals-to-constant:

condition-evals-to-constant / R1727
===================================

**Message emitted:**

Boolean condition '%s' will always evaluate to '%s'

**Description:**

*Emitted when a boolean condition can be simplified to a constant value.*


**Correct code:**

.. literalinclude:: /data/messages/c/condition-evals-to-constant/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.