.. _missing-parentheses-for-call-in-test:

missing-parentheses-for-call-in-test / W0126
============================================

**Message emitted:**

``Using a conditional statement with potentially wrong function or method call due to missing parentheses``

**Description:**

*Emitted when a conditional statement (If or ternary if) seems to wrongly call a function due to missing parentheses*

**Problematic code:**

.. literalinclude:: /data/messages/m/missing-parentheses-for-call-in-test/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/m/missing-parentheses-for-call-in-test/good.py
   :language: python





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