Closed yunruse closed 1 year ago
Python 3.11, Noether 1.0
>>> type(milli * liter) <class 'noether.core.units.PrefixedUnit.PrefixedUnit'> >>> type(milliliter) <class 'noether.core.Unit.Unit'>
In the Noether name mangling, prefixed units should actually be a PrefixedUnit.
PrefixedUnit
I'm not sure how this happens, because Unit.prefixed_units generates PrefixedUnits. Somewhere in the process they're being mixed up, I guess?
Unit.prefixed_units
General info
Python 3.11, Noether 1.0
Steps
Expected behaviour
In the Noether name mangling, prefixed units should actually be a
PrefixedUnit
.I'm not sure how this happens, because
Unit.prefixed_units
generatesPrefixedUnit
s. Somewhere in the process they're being mixed up, I guess?