Improve type hints

This commit is contained in:
Matthias 2022-11-25 14:48:06 +01:00
parent 5e6cda11ef
commit c593cdc438

View File

@ -194,7 +194,7 @@ class FreqtradeBot(LoggingMixin):
self.update_trades_without_assigned_fees() self.update_trades_without_assigned_fees()
# Query trades from persistence layer # 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) self.active_pair_whitelist = self._refresh_active_whitelist(trades)
@ -982,7 +982,7 @@ class FreqtradeBot(LoggingMixin):
# SELL / exit positions / close trades logic and methods # 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) Tries to execute exit orders for open trades (positions)
""" """