summaryrefslogtreecommitdiff
path: root/doc/data/messages/r/redefined-argument-from-local/good.py
diff options
context:
space:
mode:
authorJulthep Nandakwang <julthep@nandakwang.com>2022-06-26 11:24:01 +0700
committerGitHub <noreply@github.com>2022-06-26 06:24:01 +0200
commitce2ee5300b7d7b75f3f9aa1df89af1143e155fdb (patch)
treefac03bb5902a7f28ac71f10e58343b98e46b97c6 /doc/data/messages/r/redefined-argument-from-local/good.py
parentb16105880735e388ac28b203597c036f76e6bfc2 (diff)
downloadpylint-git-ce2ee5300b7d7b75f3f9aa1df89af1143e155fdb.tar.gz
Add documentation examples for `redefined-argument-from-local` (#7060)
Co-authored-by: Laurent Arnoud <laurent@spkdev.net> Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data/messages/r/redefined-argument-from-local/good.py')
-rw-r--r--doc/data/messages/r/redefined-argument-from-local/good.py4
1 files changed, 3 insertions, 1 deletions
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 c40beb573..330f94f45 100644
--- a/doc/data/messages/r/redefined-argument-from-local/good.py
+++ b/doc/data/messages/r/redefined-argument-from-local/good.py
@@ -1 +1,3 @@
-# This is a placeholder for correct code for this message.
+def show(host_id=10.11):
+ for inner_host_id, host in [[12.13, 'Venus'], [14.15, 'Mars']]:
+ print(host_id, inner_host_id, host)