RPI2026F1 added a comment.
I think maybe another option is to add optional kwarg `internal` to `addClaim`/`removeClaim`/etc. Then those methods will basically do what your code example is doing but without having to `setdefault` every time. TASK DETAIL https://phabricator.wikimedia.org/T324401 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: matej_suchanek, Xqt, Aklapper, Multichill, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
