Every once in a while Pywikibot breaks when a new data type gets introduced. Overview of current datatypes at https://www.wikidata.org/wiki/Special:ListDatatypes (our list at https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/__init__.py;2d9e841f08ef564ce644c7ffd1dd1341fa09a511$228). Introduce a WbUnknown type subclassed to WbRepresentation ( https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/_wbtypes.py ) to fall back to. It should just store the json as a blob of data and be able to return that without messing it up
Description
Description
Details
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
pywikibot/core | master | +68 -0 | Introduce the new WbUnknown data type for Wikibase |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Xqt | T165996 Make Pywikibot not crash on encountering an unknown WikiBase data type | |||
Resolved | Multichill | T165961 Implement WbUnknown to handle new (unknown) Wikibase data types |
Event Timeline
Comment Actions
Change 354968 had a related patch set uploaded (by Multichill; owner: Multichill):
[pywikibot/core@master] Introduce the new WbUnknown data type for Wikibase This can be used later to store claims with an unknown data type.
Comment Actions
Change 354968 merged by jenkins-bot:
[pywikibot/core@master] Introduce the new WbUnknown data type for Wikibase