Lorcan added a comment.
I was probably hasty in assuming that the translate message needed to be changed. When I took a similar approach that was taken for 'getCommonscatTemplate', for 'edit_restricted_templates', my IDE highlighted that the expected type was different from what I was passing in. The edit_restricted_templates dictionary values being a tuple rather than a string threw me off and I assumed Typing would complain due to the wrong type in the dictionary's values (although I don't have experience with Typing). Expected type 'Union[str, Mapping[str, str]]', got 'Dict[str, Tuple[str, ...]]' instead TASK DETAIL https://phabricator.wikimedia.org/T219094 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lorcan Cc: Xqt, Lorcan, Aklapper, pywikibot-bugs-list, Dvorapa, 786, Suran38, Biggs657, Gaurav24072002, Abhinay76, Lalamarie69, Annysah01, Rohitgeddam, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Soda, Chaytanya, Zkhalido, JorisDarlingtonQuarshie, Hook696, wiki-helenatxu, Kent7301, joker88john, Viztor, CucyNoiD, Klein, Wenyi, Tks4Fish, Gaboe420, Mh-3110, Giuliamocci, Cpaulf30, Lahi, Af420, Bsandipan, JakeTheDeveloper, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, xSavitar, Altostratus, Neuronton, Avicennasis, MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
