Readd optional for get_pair_locks - it's necessary

This commit is contained in:
Matthias 2020-11-27 18:02:34 +01:00
parent 9947dcd1da
commit 768d7fa196

View File

@ -46,7 +46,7 @@ class PairLocks():
PairLocks.locks.append(lock)
@staticmethod
def get_pair_locks(pair: str, now: Optional[datetime] = None) -> List[PairLock]:
def get_pair_locks(pair: Optional[str], now: Optional[datetime] = None) -> List[PairLock]:
"""
Get all currently active locks for this pair
:param pair: Pair to check for. Returns all current locks if pair is empty