mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 22:10:35 +00:00
chore: update types config to modern typing syntax
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user