diff options
author | Matus Valo <matusvalo@users.noreply.github.com> | 2022-04-12 10:45:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 10:45:10 +0200 |
commit | c48365c4c1a8f2c816a1a36135590de22c757f5a (patch) | |
tree | 0cc6a1ea82ac69e84f34618ef8f3e74207e4b202 /doc/data/messages/n/no-else-continue/bad.py | |
parent | d09e34e8e53db0aef17287936e34eb8a1e9daa37 (diff) | |
download | pylint-git-c48365c4c1a8f2c816a1a36135590de22c757f5a.tar.gz |
Added no-else-continue message example (#6263)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data/messages/n/no-else-continue/bad.py')
-rw-r--r-- | doc/data/messages/n/no-else-continue/bad.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/data/messages/n/no-else-continue/bad.py b/doc/data/messages/n/no-else-continue/bad.py new file mode 100644 index 000000000..5e3172947 --- /dev/null +++ b/doc/data/messages/n/no-else-continue/bad.py @@ -0,0 +1,6 @@ +def even_number_under(n: int): + for i in range(n): + if i%2 == 1: # [no-else-continue] + continue + else: + yield i |