.. _unused-format-string-argument:

unused-format-string-argument / W1304
=====================================

**Message emitted:**

Unused format argument %r

**Description:**

*Used when a PEP 3101 format string that uses named fields is used with an argument that is not required by the format string.*

**Problematic code:**

.. literalinclude:: /data/messages/u/unused-format-string-argument/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/u/unused-format-string-argument/good.py
   :language: python



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