Fix typo and missing type def

This commit is contained in:
Matthias 2023-12-31 15:35:23 +01:00
parent 292ef85d96
commit 1c5a699aef
2 changed files with 6 additions and 2 deletions

View File

@ -189,7 +189,7 @@ def _extract_backtest_result(filename: Path) -> List[BacktestHistoryEntryType]:
'backtest_start_ts': v.get('backtest_start_ts', None),
'backtest_end_ts': v.get('backtest_end_ts', None),
'timeframe': v.get('timeframe', None),
'timeframe_details': v.get('timeframe_details', None),
'timeframe_detail': v.get('timeframe_detail', None),
} for s, v in metadata.items()
]

View File

@ -1,4 +1,4 @@
from typing import Any, Dict, List
from typing import Any, Dict, List, Optional
from typing_extensions import TypedDict
@ -26,3 +26,7 @@ class BacktestHistoryEntryType(BacktestMetadataType):
filename: str
strategy: str
notes: str
backtest_start_ts: Optional[int]
backtest_end_ts: Optional[int]
timeframe: Optional[str]
timeframe_detail: Optional[str]