chore: improve type safety

This commit is contained in:
Matthias
2026-04-12 10:38:44 +02:00
parent 45d4c5d036
commit c60d96922d
@@ -226,7 +226,7 @@ def text_table_add_metrics(strat_results: dict) -> None:
else []
)
drawdown_metrics = []
drawdown_metrics: list[tuple[str | Text, str | Text]] = []
if "max_relative_drawdown" in strat_results:
# Compatibility to show old hyperopt results
drawdown_metrics.append(