File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/optimagic/visualization Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments