Skip to content

Commit 87d954a

Browse files
committed
refactor: fix variable typo
1 parent 74f601b commit 87d954a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

freqtrade/ft_types/plot_annotation_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class AnnotationType(TypedDict, total=False):
1515
label: str
1616

1717

18-
AnnotationTypePA = TypeAdapter(AnnotationType)
18+
AnnotationTypeTA = TypeAdapter(AnnotationType)

freqtrade/strategy/interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,14 +1813,14 @@ def ft_plot_annotations(self, pair: str, dataframe: DataFrame) -> list[Annotatio
18131813
end_date=dataframe.iloc[-1]["date"].to_pydatetime(),
18141814
)
18151815

1816-
from freqtrade.ft_types.plot_annotation_type import AnnotationTypePA
1816+
from freqtrade.ft_types.plot_annotation_type import AnnotationTypeTA
18171817

18181818
annotations_new: list[AnnotationType] = []
18191819
for annotation in annotations:
18201820
if isinstance(annotation, dict):
18211821
# Convert to AnnotationType
18221822
try:
1823-
AnnotationTypePA.validate_python(annotation)
1823+
AnnotationTypeTA.validate_python(annotation)
18241824
annotations_new.append(annotation)
18251825
except ValidationError as e:
18261826
logger.error(f"Invalid annotation data: {annotation}. Error: {e}")

0 commit comments

Comments
 (0)