Skip to content

Commit 5d5ec7f

Browse files
committed
Fix some mypy issues
1 parent e2e45b1 commit 5d5ec7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/optimagic/visualization/backends.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,13 @@ def _line_plot_bokeh(
428428
subplot: Any | None = None,
429429
) -> "bokeh.plotting.figure":
430430
from bokeh.io import curdoc
431-
from bokeh.models import Legend, LegendItem, Scatter, Span
431+
from bokeh.models import Scatter
432+
from bokeh.models.annotations import Legend, LegendItem, Span
432433
from bokeh.plotting import figure
433434

434435
if template is None:
435436
template = "light_minimal"
436-
curdoc().theme = template
437+
curdoc().theme = template # type: ignore[assignment]
437438

438439
if subplot is not None:
439440
p = subplot
@@ -580,7 +581,7 @@ def _grid_line_plot_bokeh(
580581
subplot_row.append(p)
581582
plots.append(subplot_row)
582583

583-
grid = gridplot(
584+
grid = gridplot( # type: ignore[call-overload]
584585
plots,
585586
height=height // n_rows if height else None,
586587
width=width // n_cols if width else None,

0 commit comments

Comments
 (0)