RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): Instead of using a dictionary, using an enum would make more sense, as the precision values are values in an enum. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): It would lead to clearer code as `pywikibot.WbTime.Precision.year`, and an enum would help make the distinction more clear than just a mapping of key to ints. **Benefits** (why should this be implemented?): Cleaner code TASK DETAIL https://phabricator.wikimedia.org/T325241 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org