New Python version added in CI and typing fixed in __init__.py

This commit is contained in:
Nicolas Kruse 2025-08-01 12:23:54 +02:00
parent a90c411ff1
commit 1e7e7bfead
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.10", 3.13]
steps:
- name: Check out code

View File

@ -90,8 +90,9 @@ def _save_figure(fig: Figure, buff: io.BytesIO, figure_format: FFormat, font_fam
yield ax.xaxis.label
yield ax.yaxis.label
yield from ax.get_xticklabels() + ax.get_yticklabels()
legend: Mpl_Legend = ax.get_legend()
legend = ax.get_legend()
if legend:
assert isinstance(legend, Mpl_Legend)
yield from legend.get_texts()
# Store current figure settings