chore: update types config to modern typing syntax

This commit is contained in:
Matthias 2024-10-04 06:50:53 +02:00
parent 96f737f13e
commit c5ed876c09
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
from typing import Any, Dict, List, Optional from typing import Any, Optional
from typing_extensions import TypedDict from typing_extensions import TypedDict
@ -9,9 +9,9 @@ class BacktestMetadataType(TypedDict):
class BacktestResultType(TypedDict): class BacktestResultType(TypedDict):
metadata: Dict[str, Any] # BacktestMetadataType metadata: dict[str, Any] # BacktestMetadataType
strategy: Dict[str, Any] strategy: dict[str, Any]
strategy_comparison: List[Any] strategy_comparison: list[Any]
def get_BacktestResultType_default() -> BacktestResultType: def get_BacktestResultType_default() -> BacktestResultType:

View File

@ -1,5 +1,5 @@
# Used for list-exchanges # Used for list-exchanges
from typing import List, Optional from typing import Optional
from typing_extensions import TypedDict from typing_extensions import TypedDict
@ -18,4 +18,4 @@ class ValidExchangesType(TypedDict):
dex: bool dex: bool
is_alias: bool is_alias: bool
alias_for: Optional[str] alias_for: Optional[str]
trade_modes: List[TradeModeType] trade_modes: list[TradeModeType]