summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2023-02-06 21:09:01 +0100
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2023-02-06 21:46:38 +0100
commit8d84a23bd41f5ccb0eeab6455477c80883e5df21 (patch)
treee91d49fd47b729b916f2cf3e8247c2a4902a1f36 /doc
parent76129398da6d66bda58708d3324de66d12584140 (diff)
downloadpylint-git-8d84a23bd41f5ccb0eeab6455477c80883e5df21.tar.gz
Add ``bad-mcs-classmethod-argument`` doc example
Co-authored-by: Ollie <46904826+ollie-iterators@users.noreply.github.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/data/messages/b/bad-mcs-classmethod-argument/bad.py4
-rw-r--r--doc/data/messages/b/bad-mcs-classmethod-argument/details.rst1
-rw-r--r--doc/data/messages/b/bad-mcs-classmethod-argument/good.py5
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/data/messages/b/bad-mcs-classmethod-argument/bad.py b/doc/data/messages/b/bad-mcs-classmethod-argument/bad.py
new file mode 100644
index 000000000..1cc79be7e
--- /dev/null
+++ b/doc/data/messages/b/bad-mcs-classmethod-argument/bad.py
@@ -0,0 +1,4 @@
+class Meta(type):
+ @classmethod
+ def foo(some): # [bad-mcs-classmethod-argument]
+ pass
diff --git a/doc/data/messages/b/bad-mcs-classmethod-argument/details.rst b/doc/data/messages/b/bad-mcs-classmethod-argument/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/b/bad-mcs-classmethod-argument/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/b/bad-mcs-classmethod-argument/good.py b/doc/data/messages/b/bad-mcs-classmethod-argument/good.py
index c40beb573..544fd5451 100644
--- a/doc/data/messages/b/bad-mcs-classmethod-argument/good.py
+++ b/doc/data/messages/b/bad-mcs-classmethod-argument/good.py
@@ -1 +1,4 @@
-# This is a placeholder for correct code for this message.
+class Meta(type):
+ @classmethod
+ def foo(mcs):
+ pass