Closed neostimul closed 1 year ago
I think you should use Union:
from typing import Union
def quotation_to_decimal(quotation: Union[Quotation, MoneyValue]) -> Decimal: fractional = quotation.nano / Decimal("10e8") return Decimal(quotation.units) + fractional
Там линтер ругается на длину строки
Похоже на то
hi! Why this wasn't approved?