From 69678574d4e3421ed3fe697a58b9624091f03242 Mon Sep 17 00:00:00 2001 From: KingND <81396266+KingND@users.noreply.github.com> Date: Sat, 7 Sep 2024 16:01:52 -0400 Subject: [PATCH] fix: support python 3.9 union type hinting --- freqtrade/optimize/analysis/lookahead_helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/analysis/lookahead_helpers.py b/freqtrade/optimize/analysis/lookahead_helpers.py index aff2083bf..b3cba9ed4 100644 --- a/freqtrade/optimize/analysis/lookahead_helpers.py +++ b/freqtrade/optimize/analysis/lookahead_helpers.py @@ -1,7 +1,7 @@ import logging import time from pathlib import Path -from typing import Any, Dict, List +from typing import Any, Dict, List, Union import pandas as pd from rich.text import Text @@ -21,7 +21,7 @@ class LookaheadAnalysisSubFunctions: def text_table_lookahead_analysis_instances( config: Dict[str, Any], lookahead_instances: List[LookaheadAnalysis], - caption: str | None = None, + caption: Union[str, None] = None, ): headers = [ "filename", @@ -246,7 +246,7 @@ class LookaheadAnalysisSubFunctions: # report the results if lookaheadAnalysis_instances: - caption: str | None = None + caption: Union[str, None] = None if any([ any([ indicator.startswith("&")