xbrl.Unit

A Unit class represents an XBRL unit in the instance document.

class xbrl.Unit

Attributes

xbrl.Unit.aspect_value

Returns an xbrl.UnitAspectValue object representing the value of the unit aspect.

xbrl.Unit.denominators

Returns a list of xml.QName objects which represents the QNames in the denominator of the XBRL unit.

xbrl.Unit.element

Returns an xml.Element object which represents the XML element information item of the XBRL unit.

xbrl.Unit.id

Returns a string with the value of the id attribute of the XBRL unit.

xbrl.Unit.numerators

Returns a list of xml.QName objects which represents the QNames in the numerator of the XBRL unit.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__