Closed yunruse closed 1 year ago
repr(Dimension)
and str(Dimension)
seem swapped.
repr
should show alternate names and str
not IMO
Additionally,
__repr_code__
should just be repr_code
,str(meter)
should just return "meter"
we should also expect no *
in str()
:
>> str(K * m)
'1 K m'
Fixed for v1.0.
I think I've leant on
rich
too much, because without it, the following is a bit borked:This should only happen when
display_repr_code
is True. Additionally, the comment should not display when it is True!This should be enforced by some unit testing, I think.