summaryrefslogtreecommitdiff
path: root/doc/data/messages/t/truncated-format-string
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/t/truncated-format-string')
-rw-r--r--doc/data/messages/t/truncated-format-string/bad.py3
-rw-r--r--doc/data/messages/t/truncated-format-string/details.rst1
-rw-r--r--doc/data/messages/t/truncated-format-string/good.py4
3 files changed, 6 insertions, 2 deletions
diff --git a/doc/data/messages/t/truncated-format-string/bad.py b/doc/data/messages/t/truncated-format-string/bad.py
new file mode 100644
index 000000000..961582bff
--- /dev/null
+++ b/doc/data/messages/t/truncated-format-string/bad.py
@@ -0,0 +1,3 @@
+PARG_2 = 1
+
+print("strange format %2" % PARG_2) # [truncated-format-string]
diff --git a/doc/data/messages/t/truncated-format-string/details.rst b/doc/data/messages/t/truncated-format-string/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/t/truncated-format-string/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/t/truncated-format-string/good.py b/doc/data/messages/t/truncated-format-string/good.py
index c40beb573..fd65df984 100644
--- a/doc/data/messages/t/truncated-format-string/good.py
+++ b/doc/data/messages/t/truncated-format-string/good.py
@@ -1 +1,3 @@
-# This is a placeholder for correct code for this message.
+PARG_2 = 1
+
+print(f"strange format {PARG_2}")