diff --git a/conservancy_beancount/data.py b/conservancy_beancount/data.py index b6903d30ec98aae486514d2e41efd997baa5eab9..351698a0769c47bd0e4a1ae471d2c5f8c0e2842b 100644 --- a/conservancy_beancount/data.py +++ b/conservancy_beancount/data.py @@ -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]):