diff options
author | Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | 2022-05-17 22:18:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 22:18:05 +0200 |
commit | 5fa3386272f8776b4f8ed87d38b94a6cf3cd29bd (patch) | |
tree | 330b02752e7140130407740ddbe2fec66082a266 /doc/data/messages/c/consider-using-in/bad.py | |
parent | 4169f6bc6faab8f99a7577c4fa6912e152b72245 (diff) | |
download | pylint-git-5fa3386272f8776b4f8ed87d38b94a6cf3cd29bd.tar.gz |
Add documentation examples for `consider-using-in`. (#6635)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data/messages/c/consider-using-in/bad.py')
-rw-r--r-- | doc/data/messages/c/consider-using-in/bad.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/data/messages/c/consider-using-in/bad.py b/doc/data/messages/c/consider-using-in/bad.py new file mode 100644 index 000000000..7199c1d82 --- /dev/null +++ b/doc/data/messages/c/consider-using-in/bad.py @@ -0,0 +1,2 @@ +def fruit_is_round(fruit): + return fruit == "apple" or fruit == "orange" or fruit == "melon" # [consider-using-in] |