matej_suchanek added a comment.
> Plus it requires knowledge of how the editEntity dictionary needs to be structured, which isn't readily available for non-trivial examples. It does not, I'm not building any dictionary in my example. You first stack the changes by setting/appending data to the entity, then you call `editEntity` //without// the data argument. I can think of one improvement, we could enhance the `ClaimCollection` (`item.claims`) with a method like `item.claims.put_claim(claim)` that would inline that chain of calls. TASK DETAIL https://phabricator.wikimedia.org/T324401 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek 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]
