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}")