data: Bugfix super() arguments in Amount.__new__.

Apparently I was more tired than I realized last night.
This commit is contained in:
Brett Smith 2020-04-12 08:57:42 -04:00
parent 01c3b975d8
commit 171aed16f9

View file

@ -139,7 +139,7 @@ class Amount(bc_amount.Amount):
# It works fine if you use super(), which is better practice anyway.
# So we override __new__ just to call _Amount.__new__ this way.
def __new__(cls, number: decimal.Decimal, currency: str) -> 'Amount':
return super(bc_amount._Amount, Amount).__new__(cls, number, currency)
return super(bc_amount.Amount, Amount).__new__(cls, number, currency)
class Metadata(MutableMapping[MetaKey, MetaValue]):