diff options
author | Julthep Nandakwang <julthep@nandakwang.com> | 2022-06-25 18:13:11 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 13:13:11 +0200 |
commit | 9becdf00108fccf2a29442cbea60e394772dfd55 (patch) | |
tree | 6e2c3afde96e72824b4a02db1f1f5e61a7e9d8f5 | |
parent | c8c187259e777630b79c935c67a52a26ec34a4e3 (diff) | |
download | pylint-git-9becdf00108fccf2a29442cbea60e394772dfd55.tar.gz |
Add documentation examples for `method-hidden` (#7042)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
-rw-r--r-- | doc/data/messages/m/method-hidden/bad.py | 6 | ||||
-rw-r--r-- | doc/data/messages/m/method-hidden/details.rst | 1 | ||||
-rw-r--r-- | doc/data/messages/m/method-hidden/good.py | 7 |
3 files changed, 12 insertions, 2 deletions
diff --git a/doc/data/messages/m/method-hidden/bad.py b/doc/data/messages/m/method-hidden/bad.py new file mode 100644 index 000000000..5dc113047 --- /dev/null +++ b/doc/data/messages/m/method-hidden/bad.py @@ -0,0 +1,6 @@ +class Fruit: + def __init__(self, vitamins): + self.vitamins = vitamins + + def vitamins(self): # [method-hidden] + pass diff --git a/doc/data/messages/m/method-hidden/details.rst b/doc/data/messages/m/method-hidden/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/m/method-hidden/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/method-hidden/good.py b/doc/data/messages/m/method-hidden/good.py index c40beb573..cfc23c236 100644 --- a/doc/data/messages/m/method-hidden/good.py +++ b/doc/data/messages/m/method-hidden/good.py @@ -1 +1,6 @@ -# This is a placeholder for correct code for this message. +class Fruit: + def __init__(self, vitamins): + self.vitamins = vitamins + + def antioxidants(self): + pass |