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
|
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:
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user