summaryrefslogtreecommitdiff
path: root/doc/data/messages/r
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-03-20 10:48:16 +0100
committerGitHub <noreply@github.com>2023-03-20 10:48:16 +0100
commitac30d57107e79406a8c871fe278844d1cf498381 (patch)
treea34e567aae09e89a18d02ded39caefb2e7dbd013 /doc/data/messages/r
parent1eef2273aee4c5a2e287f7470d6da3a3ae7d0760 (diff)
downloadpylint-git-ac30d57107e79406a8c871fe278844d1cf498381.tar.gz
Add doc for ``bad-file-encoding``, ``return-arg-in-generator`` (#8447)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data/messages/r')
-rw-r--r--doc/data/messages/r/return-arg-in-generator/details.rst1
-rw-r--r--doc/data/messages/r/return-arg-in-generator/good.py5
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/data/messages/r/return-arg-in-generator/details.rst b/doc/data/messages/r/return-arg-in-generator/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/r/return-arg-in-generator/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/r/return-arg-in-generator/good.py b/doc/data/messages/r/return-arg-in-generator/good.py
index c40beb573..72dc95e7b 100644
--- a/doc/data/messages/r/return-arg-in-generator/good.py
+++ b/doc/data/messages/r/return-arg-in-generator/good.py
@@ -1 +1,4 @@
-# This is a placeholder for correct code for this message.
+def yield_numbers():
+ for number in range(10):
+ yield number
+ return "I am now allowed!" # This was not allowed in Python 3.3 and earlier.