From c593cdc4382ca0070f1a78f5a85a34e6e8ab777b Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 25 Nov 2022 14:48:06 +0100 Subject: [PATCH] Improve type hints --- freqtrade/freqtradebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 6ffc6a755..c8544ac13 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -194,7 +194,7 @@ class FreqtradeBot(LoggingMixin): self.update_trades_without_assigned_fees() # Query trades from persistence layer - trades = Trade.get_open_trades() + trades: List[Trade] = Trade.get_open_trades() self.active_pair_whitelist = self._refresh_active_whitelist(trades) @@ -982,7 +982,7 @@ class FreqtradeBot(LoggingMixin): # SELL / exit positions / close trades logic and methods # - def exit_positions(self, trades: List[Any]) -> int: + def exit_positions(self, trades: List[Trade]) -> int: """ Tries to execute exit orders for open trades (positions) """