.. _comparison-with-callable:

comparison-with-callable / W0143
================================

**Message emitted:**

Comparing against a callable, did you omit the parenthesis?

**Description:**

*This message is emitted when pylint detects that a comparison with a callable was made, which might suggest that some parenthesis were omitted, resulting in potential unwanted behaviour.*

**Problematic code:**

.. literalinclude:: /data/messages/c/comparison-with-callable/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/c/comparison-with-callable/good.py
   :language: python



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