Skip to content

fix: address type hints for _extract_line_data method in MultiLinePlot #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion maidr/core/plot/lineplot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import List, Union

from matplotlib.axes import Axes
from matplotlib.lines import Line2D

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

return data

def _extract_line_data(self, plot: list[Line2D] | None) -> list[dict] | None:
def _extract_line_data(
self, plot: Union[List[Line2D], None]
) -> Union[List[dict], None]:
"""
Extract data from multiple line objects.

Expand Down