summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/data/messages/m/missing-format-string-key/bad.py7
-rw-r--r--doc/data/messages/m/missing-format-string-key/details.rst1
-rw-r--r--doc/data/messages/m/missing-format-string-key/good.py8
3 files changed, 14 insertions, 2 deletions
diff --git a/doc/data/messages/m/missing-format-string-key/bad.py b/doc/data/messages/m/missing-format-string-key/bad.py
new file mode 100644
index 000000000..4bbfcacbc
--- /dev/null
+++ b/doc/data/messages/m/missing-format-string-key/bad.py
@@ -0,0 +1,7 @@
+# +1: [missing-format-string-key]
+fruit_prices = """
+Apple: %(apple_price)d ¤
+Orange: %(orange_price)d ¤
+""" % {
+ "apple_price": 42
+}
diff --git a/doc/data/messages/m/missing-format-string-key/details.rst b/doc/data/messages/m/missing-format-string-key/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/m/missing-format-string-key/details.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !
diff --git a/doc/data/messages/m/missing-format-string-key/good.py b/doc/data/messages/m/missing-format-string-key/good.py
index c40beb573..11b856762 100644
--- a/doc/data/messages/m/missing-format-string-key/good.py
+++ b/doc/data/messages/m/missing-format-string-key/good.py
@@ -1 +1,7 @@
-# This is a placeholder for correct code for this message.
+fruit_prices = """
+Apple: %(apple_price)d ¤
+Orange: %(orange_price)d ¤
+""" % {
+ "apple_price": 42,
+ "orange_price": 87,
+}