diff --git a/gnucash-txn-import/gnucash_api.py b/gnucash-txn-import/gnucash_api.py index c04cd339..52b06e4d 100644 --- a/gnucash-txn-import/gnucash_api.py +++ b/gnucash-txn-import/gnucash_api.py @@ -20,7 +20,7 @@ class TxnAddArgsDict(TypedDict): def to_dollars(x: Union[str, int, float, Decimal, GncNumeric]) -> Decimal: - if type(x) == GncNumeric: + if type(x) is GncNumeric: x = float(x) elif isinstance(x, str): x = x.replace(",", "")