Quantity

Inheritance diagram of Quantity
class Quantity(value: str, units: Optional[UnitLike] = None)[source]
class Quantity(value: Sequence, units: Optional[UnitLike] = None)
class Quantity(value: pint.quantity.Quantity[pint.quantity.Magnitude], units: Optional[UnitLike] = None)
class Quantity(value: pint.quantity.Magnitude, units: Optional[UnitLike] = None)

Import from taurus.core.units as:

from taurus.core.units import Quantity
default_format: str = '~'

Default formatting string.