From 87d954a3222380353f47a848ee08bdb753e0c7db Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 3 May 2025 08:03:16 +0200 Subject: [PATCH] refactor: fix variable typo --- freqtrade/ft_types/plot_annotation_type.py | 2 +- freqtrade/strategy/interface.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/ft_types/plot_annotation_type.py b/freqtrade/ft_types/plot_annotation_type.py index b132d9922..b08db3c57 100644 --- a/freqtrade/ft_types/plot_annotation_type.py +++ b/freqtrade/ft_types/plot_annotation_type.py @@ -15,4 +15,4 @@ class AnnotationType(TypedDict, total=False): label: str -AnnotationTypePA = TypeAdapter(AnnotationType) +AnnotationTypeTA = TypeAdapter(AnnotationType) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 761f95f61..bb4cd264a 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -1813,14 +1813,14 @@ class IStrategy(ABC, HyperStrategyMixin): end_date=dataframe.iloc[-1]["date"].to_pydatetime(), ) - from freqtrade.ft_types.plot_annotation_type import AnnotationTypePA + from freqtrade.ft_types.plot_annotation_type import AnnotationTypeTA annotations_new: list[AnnotationType] = [] for annotation in annotations: if isinstance(annotation, dict): # Convert to AnnotationType try: - AnnotationTypePA.validate_python(annotation) + AnnotationTypeTA.validate_python(annotation) annotations_new.append(annotation) except ValidationError as e: logger.error(f"Invalid annotation data: {annotation}. Error: {e}")