diff options
author | Dani Alcala <112832187+clavedeluna@users.noreply.github.com> | 2022-10-27 09:34:25 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 14:34:25 +0200 |
commit | d295b71bfe25103620c99796aed077152e2e1966 (patch) | |
tree | bf4d6ce69e1cfd9f84097af04725a5da4c3d96cb /doc/data/messages/n/nonlocal-without-binding/bad.py | |
parent | efc9033b8dcc953f68b1ab202e668a7ae80feac9 (diff) | |
download | pylint-git-d295b71bfe25103620c99796aed077152e2e1966.tar.gz |
Add doc example for various messages (#7684)
* add docs for non-str-assignment
* add docs for nonlocal
* add docs for not-a-mapping
* add docs for possibly unused var
* add docs for preferred module
* add docs for redundant return doc
Diffstat (limited to 'doc/data/messages/n/nonlocal-without-binding/bad.py')
-rw-r--r-- | doc/data/messages/n/nonlocal-without-binding/bad.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/data/messages/n/nonlocal-without-binding/bad.py b/doc/data/messages/n/nonlocal-without-binding/bad.py new file mode 100644 index 000000000..6a166e09f --- /dev/null +++ b/doc/data/messages/n/nonlocal-without-binding/bad.py @@ -0,0 +1,3 @@ +class Fruit: + def get_color(self): + nonlocal colors # [nonlocal-without-binding] |