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
classAmountWithCurrency(Base):
amount: floatcurrency: Union[CurrencyModel, str] # string if currency util couldn't parse it
For example, like here, user has to introspect currency field and find out whether it str or CurrencyModel. It seems to me that I'll implement this feature with help of python-iso4217 module.
The text was updated successfully, but these errors were encountered:
Example from source code
For example, like here, user has to introspect currency field and find out whether it str or CurrencyModel. It seems to me that I'll implement this feature with help of python-iso4217 module.
The text was updated successfully, but these errors were encountered: