[Pywikipedia-bugs] [Maniphest] [Commented On] T355915: Pywikibot made unmentioned breaking change in 8.3.0

2024-01-30 Thread gerritbot
gerritbot added a comment. Change 994187 **merged** by jenkins-bot: [pywikibot/core@master] [cleanup] Drop pywikibot.BaseSite and pywikibotAPISite https://gerrit.wikimedia.org/r/994187 TASK DETAIL https://phabricator.wikimedia.org/T355915 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T355915: Pywikibot made unmentioned breaking change in 8.3.0

2024-01-30 Thread Xqt
Xqt added a comment. @RPI2026F1: You can import the classes from `pywikibot.site` to compare them or (for duck typing) check for having the methods or finally test the `type(site).__name__` where `site` is the object returned by `pywikibot.Site()` constuctor. TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T355915: Pywikibot made unmentioned breaking change in 8.3.0

2024-01-30 Thread gerritbot
gerritbot added a comment. Change 994187 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [cleanup] Drop pywikibot.BaseSite and pywikibotAPISite https://gerrit.wikimedia.org/r/994187 TASK DETAIL https://phabricator.wikimedia.org/T355915 EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T355915: Pywikibot made unmentioned breaking change in 8.3.0

2024-01-25 Thread RPI2026F1
RPI2026F1 added a comment. I was using DataSite to enhance type information, since `pywikibot.Site()` only returns methods shared by all types of sites, and I needed some Wikidata-specific methods. TASK DETAIL https://phabricator.wikimedia.org/T355915 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T355915: Pywikibot made unmentioned breaking change in 8.3.0

2024-01-25 Thread JJMC89
JJMC89 added a comment. Objects imported into a module are not guaranteed to be stable across versions. The stable interface for creating site objects is `pywikibot.Site()`. TASK DETAIL https://phabricator.wikimedia.org/T355915 EMAIL PREFERENCES