.. _superfluous-parens:

superfluous-parens / C0325
==========================

**Message emitted:**

Unnecessary parens after %r keyword

**Description:**

*Used when a single item in parentheses follows an if, for, or other keyword.*

**Problematic code:**

.. literalinclude:: /data/messages/s/superfluous-parens/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/s/superfluous-parens/good.py
   :language: python



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