summaryrefslogtreecommitdiff
path: root/doc/data
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-02-04 22:46:37 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2023-02-05 20:49:40 +0100
commitd32c2b067701835673750649167b785555edaa7e (patch)
tree2e7a89e6116efd7d76c424f358d35becf70a9f69 /doc/data
parent76ddd4d0daba17a00a432fb76f0a2c409da5f3c4 (diff)
downloadpylint-git-d32c2b067701835673750649167b785555edaa7e.tar.gz
[locally-disabled] Generate imaginative example without any fruit
Prompt: Same request with 'locally-disabled', please keep it fresh.
Diffstat (limited to 'doc/data')
-rw-r--r--doc/data/messages/l/locally-disabled/bad.py7
-rw-r--r--doc/data/messages/l/locally-disabled/details.rst1
-rw-r--r--doc/data/messages/l/locally-disabled/good.py7
3 files changed, 13 insertions, 2 deletions
diff --git a/doc/data/messages/l/locally-disabled/bad.py b/doc/data/messages/l/locally-disabled/bad.py
new file mode 100644
index 000000000..5bfbd58f8
--- /dev/null
+++ b/doc/data/messages/l/locally-disabled/bad.py
@@ -0,0 +1,7 @@
+def wizard_spells(spell_book):
+ # pylint: disable=maybe-no-member # [locally-disabled]
+ for spell in spell_book:
+ print(f"Abracadabra! {spell}.")
+
+spell_list = ["Levitation", "Invisibility", "Fireball", "Teleportation"]
+wizard_spells(spell_list)
diff --git a/doc/data/messages/l/locally-disabled/details.rst b/doc/data/messages/l/locally-disabled/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/l/locally-disabled/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/l/locally-disabled/good.py b/doc/data/messages/l/locally-disabled/good.py
index c40beb573..322a78f27 100644
--- a/doc/data/messages/l/locally-disabled/good.py
+++ b/doc/data/messages/l/locally-disabled/good.py
@@ -1 +1,6 @@
-# This is a placeholder for correct code for this message.
+def wizard_spells(spell_book):
+ for spell in spell_book:
+ print(f"Abracadabra! {spell}.")
+
+spell_list = ["Levitation", "Invisibility", "Fireball", "Teleportation"]
+wizard_spells(spell_list)