From 2b0b85330e06b9b7f7fe65d7981afbc5e801e0cb Mon Sep 17 00:00:00 2001 From: "Jakub Werner (jakubikan)" Date: Fri, 22 Mar 2024 21:40:36 +0100 Subject: [PATCH] works also without __class__ --- freqtrade/exchange/binance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/binance.py b/freqtrade/exchange/binance.py index 2acc3dcf1..3076d9602 100644 --- a/freqtrade/exchange/binance.py +++ b/freqtrade/exchange/binance.py @@ -53,7 +53,7 @@ class Binance(Exchange): ] def __init__(self, *args, **kwargs) -> None: - super(__class__, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self._spot_delist_schedule_cache: TTLCache = TTLCache(maxsize=100, ttl=300) self._spot_delist_schedule_cache_lock = Lock() @@ -246,7 +246,7 @@ class Binance(Exchange): delist_schedule = self._api.sapi_get_spot_delist_schedule() if delist_schedule is None: - return + return None with lock: for schedule in delist_schedule: