From 2586c3ebf547d3ef0f2e98abdad98f4426b4b2c4 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 21 Jul 2024 20:00:05 -0400 Subject: [PATCH] fix(gnucash): pass ruff --- gnucash-txn-import/gnucash_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(",", "")