Skip to content

Commit

Permalink
fix(gnucash): pass ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Jul 22, 2024
1 parent 44badeb commit 2586c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash-txn-import/gnucash_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(",", "")
Expand Down

0 comments on commit 2586c3e

Please sign in to comment.