From 582bf952e02a44e2d2159cd0192e6080350a3166 Mon Sep 17 00:00:00 2001 From: Chris Berkhout Date: Thu, 24 Nov 2022 13:55:04 +0100 Subject: [PATCH] Formatting. --- src/pricehist/outputs/gnucashsql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pricehist/outputs/gnucashsql.py b/src/pricehist/outputs/gnucashsql.py index 2034754..723fcd4 100644 --- a/src/pricehist/outputs/gnucashsql.py +++ b/src/pricehist/outputs/gnucashsql.py @@ -169,9 +169,9 @@ class GnuCashSQL(BaseOutput): denom = str(1) else: numerator = sign + "".join([str(d) for d in tup.digits]) - denom = str(10 ** -tup.exponent) + denom = str(10**-tup.exponent) fit = self._fit_in_int64(Decimal(numerator), Decimal(denom)) return (numerator, denom, fit) def _fit_in_int64(self, *numbers): - return all(n >= -(2 ** 63) and n <= (2 ** 63) - 1 for n in numbers) + return all(n >= -(2**63) and n <= (2**63) - 1 for n in numbers)