summaryrefslogtreecommitdiff
path: root/doc/data/messages/r
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/r')
-rw-r--r--doc/data/messages/r/raw-checker-failed/details.rst2
-rw-r--r--doc/data/messages/r/redefined-argument-from-local/bad.py3
-rw-r--r--doc/data/messages/r/redefined-argument-from-local/good.py2
-rw-r--r--doc/data/messages/r/relative-beyond-top-level/details.rst2
-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
-rw-r--r--doc/data/messages/r/return-in-init/bad.py1
-rw-r--r--doc/data/messages/r/return-in-init/good.py1
8 files changed, 9 insertions, 8 deletions
diff --git a/doc/data/messages/r/raw-checker-failed/details.rst b/doc/data/messages/r/raw-checker-failed/details.rst
index ab8204529..c1e9b976a 100644
--- a/doc/data/messages/r/raw-checker-failed/details.rst
+++ b/doc/data/messages/r/raw-checker-failed/details.rst
@@ -1 +1 @@
-You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !
+You can help us make the doc better `by contributing <https://github.com/pylint-dev/pylint/issues/5953>`_ !
diff --git a/doc/data/messages/r/redefined-argument-from-local/bad.py b/doc/data/messages/r/redefined-argument-from-local/bad.py
index 24d441219..733f307b3 100644
--- a/doc/data/messages/r/redefined-argument-from-local/bad.py
+++ b/doc/data/messages/r/redefined-argument-from-local/bad.py
@@ -1,3 +1,4 @@
def show(host_id=10.11):
- for host_id, host in [[12.13, 'Venus'], [14.15, 'Mars']]: # [redefined-argument-from-local]
+ # +1: [redefined-argument-from-local]
+ for host_id, host in [[12.13, "Venus"], [14.15, "Mars"]]:
print(host_id, host)
diff --git a/doc/data/messages/r/redefined-argument-from-local/good.py b/doc/data/messages/r/redefined-argument-from-local/good.py
index 330f94f45..fd7c081ac 100644
--- a/doc/data/messages/r/redefined-argument-from-local/good.py
+++ b/doc/data/messages/r/redefined-argument-from-local/good.py
@@ -1,3 +1,3 @@
def show(host_id=10.11):
- for inner_host_id, host in [[12.13, 'Venus'], [14.15, 'Mars']]:
+ for inner_host_id, host in [[12.13, "Venus"], [14.15, "Mars"]]:
print(host_id, inner_host_id, host)
diff --git a/doc/data/messages/r/relative-beyond-top-level/details.rst b/doc/data/messages/r/relative-beyond-top-level/details.rst
index ab8204529..c1e9b976a 100644
--- a/doc/data/messages/r/relative-beyond-top-level/details.rst
+++ b/doc/data/messages/r/relative-beyond-top-level/details.rst
@@ -1 +1 @@
-You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !
+You can help us make the doc better `by contributing <https://github.com/pylint-dev/pylint/issues/5953>`_ !
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.
diff --git a/doc/data/messages/r/return-in-init/bad.py b/doc/data/messages/r/return-in-init/bad.py
index 70fc2d0fd..044174e0a 100644
--- a/doc/data/messages/r/return-in-init/bad.py
+++ b/doc/data/messages/r/return-in-init/bad.py
@@ -1,4 +1,3 @@
class Sum:
-
def __init__(self, a, b): # [return-in-init]
return a + b
diff --git a/doc/data/messages/r/return-in-init/good.py b/doc/data/messages/r/return-in-init/good.py
index ef8e6e09b..0efe05af4 100644
--- a/doc/data/messages/r/return-in-init/good.py
+++ b/doc/data/messages/r/return-in-init/good.py
@@ -1,4 +1,3 @@
class Sum:
-
def __init__(self, a, b) -> None:
self.result = a + b