.. _f-string-without-interpolation:

f-string-without-interpolation / W1309
======================================

**Message emitted:**

Using an f-string that does not have any interpolated variables

**Description:**

*Used when we detect an f-string that does not use any interpolation variables, in which case it can be either a normal string or a bug in the code.*

**Problematic code:**

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

**Correct code:**

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



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