You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since, by definitiion, GeneralUnit is already in default internal units, there is no _to_default_unit() method. This causes issues when a GeneralUnit instance is treated like the other unit-based types. An easy fix is to just add a _to_default_unit() method that returns self, so it can be treated the same way.
The text was updated successfully, but these errors were encountered:
Since, by definitiion,
GeneralUnit
is already in default internal units, there is no_to_default_unit()
method. This causes issues when aGeneralUnit
instance is treated like the other unit-based types. An easy fix is to just add a_to_default_unit()
method that returnsself
, so it can be treated the same way.The text was updated successfully, but these errors were encountered: