Slightly imporve Typing by reusing long/short type

This commit is contained in:
Matthias
2022-04-04 16:51:57 +02:00
parent f8783c908e
commit 33841da382
4 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
"""
bot constants
"""
from typing import List, Tuple
from typing import List, Literal, Tuple
from freqtrade.enums import CandleType
@@ -487,3 +487,6 @@ ListPairsWithTimeframes = List[PairWithTimeframe]
# Type for trades list
TradeList = List[List]
LongShort = Literal['long', 'short']
EntryExit = Literal['entry', 'exit']