From 171aed16f93bdb6f2591aad9bf95ba2ed6b4df31 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Sun, 12 Apr 2020 08:57:42 -0400 Subject: [PATCH] data: Bugfix super() arguments in Amount.__new__. Apparently I was more tired than I realized last night. --- conservancy_beancount/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conservancy_beancount/data.py b/conservancy_beancount/data.py index b6903d3..351698a 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]):