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


**Correct code:**

.. literalinclude:: /data/messages/m/missing-parentheses-for-call-in-test/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 `basic <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/base/basic_checker.py>`__ checker.