.. _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.*


**Correct code:**

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

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


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