Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1179774?usp=email )
Change subject: Fix: Omit deprecation warning in _wptypes ...................................................................... Fix: Omit deprecation warning in _wptypes Change-Id: Ice1379607b92fcc480df85a835d271c5a080ef24 Signed-off-by: Xqt <i...@gno.de> --- M pywikibot/_wbtypes.py 1 file changed, 9 insertions(+), 3 deletions(-) Approvals: Xqt: Verified; Looks good to me, approved diff --git a/pywikibot/_wbtypes.py b/pywikibot/_wbtypes.py index e3ed6b0..0aa2317 100644 --- a/pywikibot/_wbtypes.py +++ b/pywikibot/_wbtypes.py @@ -941,9 +941,15 @@ :param site: The Wikibase site. If not provided, retrieves the data repository from the default site from user-config.py. """ - return cls.fromTimestr(data['time'], data['precision'], - data['before'], data['after'], - data['timezone'], data['calendarmodel'], site) + return cls.fromTimestr( + data['time'], + precision=data['precision'], + before=data['before'], + after=data['after'], + timezone=data['timezone'], + calendarmodel=data['calendarmodel'], + site=site + ) class WbQuantity(WbRepresentation): -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1179774?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: Ice1379607b92fcc480df85a835d271c5a080ef24 Gerrit-Change-Number: 1179774 Gerrit-PatchSet: 3 Gerrit-Owner: Xqt <i...@gno.de> Gerrit-Reviewer: Xqt <i...@gno.de> Gerrit-Reviewer: jenkins-bot
_______________________________________________ Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org