.. _truncated-format-string:

truncated-format-string / E1301
===============================

**Message emitted:**

``Format string ends in middle of conversion specifier``

**Description:**

*Used when a format string terminates before the end of a conversion specifier.*

**Problematic code:**

.. literalinclude:: /data/messages/t/truncated-format-string/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/t/truncated-format-string/good.py
   :language: python





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