Multichill created this task.
Multichill added a subscriber: Multichill.
Multichill added projects: Pywikibot-Wikidata, pywikibot-core, Wikidata.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Units just got deployed to Wikidata. Pywikibot should also implement support 
for units. Looks like WbQuantity is already prepared, but not completed for 
this:
  
  ```
  class WbQuantity(object):
  
      """A Wikibase quantity representation."""
  
      def __init__(self, amount, unit=None, error=None):
          u"""
          Create a new WbQuantity object.
  
          @param amount: number representing this quantity
          @type amount: float
          @param unit: not used (only unit-less quantities are supported)
          @param error: the uncertainty of the amount (e.g. ±1)
          @type error: float, or tuple of two floats, where the first value is
                       the upper error and the second is the lower error value.
  ```
  The unit should be a Wikidata item.
  
  More info at: https://www.wikidata.org/wiki/Wikidata:Units & 
https://www.mediawiki.org/wiki/Wikibase/DataModel#Quantities

TASK DETAIL
  https://phabricator.wikimedia.org/T112130

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Multichill
Cc: Aklapper, pywikibot-bugs-list, Multichill, Wikidata-bugs, aude, jayvdb, 
Ricordisamoa



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to