Skip to content

Commit c91425c

Browse files
authored
fix: address type hints for _extract_line_data method in MultiLinePlot (#152)
1 parent 31a326e commit c91425c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: maidr/core/plot/lineplot.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import List, Union
2+
13
from matplotlib.axes import Axes
24
from matplotlib.lines import Line2D
35

@@ -59,7 +61,9 @@ def _extract_plot_data(self) -> list[dict]:
5961

6062
return data
6163

62-
def _extract_line_data(self, plot: list[Line2D] | None) -> list[dict] | None:
64+
def _extract_line_data(
65+
self, plot: Union[List[Line2D], None]
66+
) -> Union[List[dict], None]:
6367
"""
6468
Extract data from multiple line objects.
6569

0 commit comments

Comments
 (0)