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
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
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
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
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