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
8000
tool-tip>
In string formatting, a print-f style format specifier can have its amount and precision formatted by variable value through use of star asterik(%*s).
In cformat_bytes and cformat_string, through try_update_quantity_from_tuple, try_update_quantity_from_element is used to update quantity if possible, but it makes the assumption that its behavior should be the same regardless of the sign value of the given element.
In string formatting, a print-f style format specifier can have its amount and precision formatted by variable value through use of star asterik(%*s).
In cformat_bytes and cformat_string, through try_update_quantity_from_tuple, try_update_quantity_from_element is used to update quantity if possible, but it makes the assumption that its behavior should be the same regardless of the sign value of the given element.
However, that assumption is false, as an amount can be preceded by a negative sign, and it should make the resulting string left adjusted, according to format specifier rule.
https://docs.python.org/3/library/stdtypes.html#old-string-formatting
This issue makes this test to fail.
I think this issue can be resolved by checking the sign of the element and adding the minus sign accordingly.
I'm working on the fix at the moment.
The text was updated successfully, but these errors were encountered: