.. _format-string-without-interpolation:

format-string-without-interpolation / W1310
===========================================

**Message emitted:**

Using formatting for a string that does not have any interpolated variables

**Description:**

*Used when we detect a string that does not have any interpolation variables, in which case it can be either a normal string without formatting or a bug in the code.*

**Problematic code:**

.. literalinclude:: /data/messages/f/format-string-without-interpolation/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/f/format-string-without-interpolation/good.py
   :language: python



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