Merge pull request #7813 from freqtrade/dependabot/pip/develop/flake8-6.0.0

Bump flake8 from 5.0.4 to 6.0.0
This commit is contained in:
Matthias
2022-11-28 08:00:45 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ class PairLocks():
Get the lock that expires the latest for the pair given.
"""
locks = PairLocks.get_pair_locks(pair, now, side=side)
locks = sorted(locks, key=lambda l: l.lock_end_time, reverse=True)
locks = sorted(locks, key=lambda lock: lock.lock_end_time, reverse=True)
return locks[0] if locks else None
@staticmethod