works also without __class__

This commit is contained in:
Jakub Werner (jakubikan) 2024-03-22 21:40:36 +01:00
parent 4257e1ca96
commit 2b0b85330e

View File

@ -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: