mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
Update to latest ruff format
This commit is contained in:
parent
76459f08aa
commit
225ef6b8ca
|
@ -20,8 +20,10 @@ class SKDecimal(Integer):
|
||||||
super().__init__(_low, _high, prior, base, transform, name, dtype)
|
super().__init__(_low, _high, prior, base, transform, name, dtype)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "Decimal(low={}, high={}, decimals={}, prior='{}', transform='{}')".format(
|
return (
|
||||||
self.low_orig, self.high_orig, self.decimals, self.prior, self.transform_)
|
f"Decimal(low={self.low_orig}, high={self.high_orig}, decimals={self.decimals}, "
|
||||||
|
f"prior='{self.prior}', transform='{self.transform_}')"
|
||||||
|
)
|
||||||
|
|
||||||
def __contains__(self, point):
|
def __contains__(self, point):
|
||||||
if isinstance(point, list):
|
if isinstance(point, list):
|
||||||
|
|
|
@ -77,9 +77,8 @@ class CryptoToFiatConverter(LoggingMixin):
|
||||||
return
|
return
|
||||||
# If the request is not a 429 error we want to raise the normal error
|
# If the request is not a 429 error we want to raise the normal error
|
||||||
logger.error(
|
logger.error(
|
||||||
"Could not load FIAT Cryptocurrency map for the following problem: {}".format(
|
"Could not load FIAT Cryptocurrency map for the following problem: "
|
||||||
request_exception
|
f"{request_exception}"
|
||||||
)
|
|
||||||
)
|
)
|
||||||
except (Exception) as exception:
|
except (Exception) as exception:
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user