Xqt created this task.
Xqt added projects: Pywikibot, good first task.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Introduction
------------
To check if a variable is equal to one of many values, combine the values
into a tuple and check if the variable is contained in it instead of checking
for equality against each of the values. This is faster, less verbose, and more
readable.
What to do:
-----------
Bad code like
if x == 1 or x == 2 or x == 3:
do_something()
should be replaced to
if x in (1, 2, 3):
do_something()
- The PYL-R1714 issues are listed here
<https://deepsource.io/gh/xqt/pywikibot/issue/PYL-R1714/occurrences>
Important hints
---------------
- additional information and code samples can be found here
<https://deepsource.io/gh/xqt/pywikibot/issue/PYL-R1714/description>
- refer our Coding Convention Guidlines
<https://www.mediawiki.org/wiki/Manual:Pywikibot/Development#Guidelines>
TASK DETAIL
https://phabricator.wikimedia.org/T282450
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Shalomori123, Gaurav24072002,
Abhinay76, Annysah01, Rohitgeddam, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra,
Khutuck, Soda, Chaytanya, Zkhalido, wiki-helenatxu, Viztor, Wenyi, Kieubinhtb,
Tks4Fish, Mh-3110, Asad_Ali_Palijo, Lahi, Soteriaspace, JakeTheDeveloper,
Tbscho, MayS, Mdupont, JJMC89, Dvorapa, xSavitar, Altostratus, Avicennasis,
MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]