diff options
author | Julthep Nandakwang <julthep@nandakwang.com> | 2022-06-24 20:57:35 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 15:57:35 +0200 |
commit | 25525859af56bc613e7922af9aea57f517d888bd (patch) | |
tree | db51b32a4b1cd7b958b354a9fa8f5fcec7a4b098 /doc/data/messages | |
parent | 82421892651481ed968afc58fcceaaa80f2219b4 (diff) | |
download | pylint-git-25525859af56bc613e7922af9aea57f517d888bd.tar.gz |
Add documentation examples for `format-combined-specification` (#7020)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
Diffstat (limited to 'doc/data/messages')
3 files changed, 4 insertions, 2 deletions
diff --git a/doc/data/messages/f/format-combined-specification/bad.py b/doc/data/messages/f/format-combined-specification/bad.py new file mode 100644 index 000000000..6a6a051f2 --- /dev/null +++ b/doc/data/messages/f/format-combined-specification/bad.py @@ -0,0 +1 @@ +print('{} {1}'.format('hello', 'world')) # [format-combined-specification] diff --git a/doc/data/messages/f/format-combined-specification/details.rst b/doc/data/messages/f/format-combined-specification/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/f/format-combined-specification/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/f/format-combined-specification/good.py b/doc/data/messages/f/format-combined-specification/good.py index c40beb573..542b77507 100644 --- a/doc/data/messages/f/format-combined-specification/good.py +++ b/doc/data/messages/f/format-combined-specification/good.py @@ -1 +1,3 @@ -# This is a placeholder for correct code for this message. +print('{0} {1}'.format('hello', 'world')) +# or +print('{} {}'.format('hello', 'world')) |