data: Bugfix super() arguments in Amount.__new__.
Apparently I was more tired than I realized last night.
This commit is contained in:
parent
01c3b975d8
commit
171aed16f9
1 changed files with 1 additions and 1 deletions
|
@ -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]):
|
||||
|
|
Loading…
Reference in a new issue