.. _missing-format-string-key:

missing-format-string-key / E1304
=================================

**Message emitted:**

Missing key %r in format string dictionary

**Description:**

*Used when a format string that uses named conversion specifiers is used with a dictionary that doesn't contain all the keys required by the format string.*


**Correct code:**

.. literalinclude:: /data/messages/m/missing-format-string-key/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.