mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 12:13:57 +00:00
chore: update types config to modern typing syntax
This commit is contained in:
parent
96f737f13e
commit
c5ed876c09
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, Dict, List, Optional
|
||||
from typing import Any, Optional
|
||||
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
|
@ -9,9 +9,9 @@ class BacktestMetadataType(TypedDict):
|
|||
|
||||
|
||||
class BacktestResultType(TypedDict):
|
||||
metadata: Dict[str, Any] # BacktestMetadataType
|
||||
strategy: Dict[str, Any]
|
||||
strategy_comparison: List[Any]
|
||||
metadata: dict[str, Any] # BacktestMetadataType
|
||||
strategy: dict[str, Any]
|
||||
strategy_comparison: list[Any]
|
||||
|
||||
|
||||
def get_BacktestResultType_default() -> BacktestResultType:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Used for list-exchanges
|
||||
from typing import List, Optional
|
||||
from typing import Optional
|
||||
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
|
@ -18,4 +18,4 @@ class ValidExchangesType(TypedDict):
|
|||
dex: bool
|
||||
is_alias: bool
|
||||
alias_for: Optional[str]
|
||||
trade_modes: List[TradeModeType]
|
||||
trade_modes: list[TradeModeType]
|
||||
|
|
Loading…
Reference in New Issue
Block a user