16
16
tomato as BEAR_COLOR
17
17
)
18
18
from bokeh .plotting import figure as _figure
19
- from bokeh .models import (
19
+ from bokeh .models import ( # type: ignore
20
20
CrosshairTool ,
21
21
CustomJS ,
22
22
ColumnDataSource ,
@@ -625,7 +625,7 @@ def __eq__(self, other):
625
625
if plot_volume :
626
626
custom_js_args .update (volume_range = fig_volume .y_range )
627
627
628
- fig_ohlc .x_range .js_on_change ('end' , CustomJS (args = custom_js_args ,
628
+ fig_ohlc .x_range .js_on_change ('end' , CustomJS (args = custom_js_args , # type: ignore
629
629
code = _AUTOSCALE_JS_CALLBACK ))
630
630
631
631
plots = figs_above_ohlc + [fig_ohlc ] + figs_below_ohlc
@@ -650,7 +650,7 @@ def __eq__(self, other):
650
650
651
651
f .add_tools (linked_crosshair )
652
652
wheelzoom_tool = next (wz for wz in f .tools if isinstance (wz , WheelZoomTool ))
653
- wheelzoom_tool .maintain_focus = False
653
+ wheelzoom_tool .maintain_focus = False # type: ignore
654
654
655
655
kwargs = {}
656
656
if plot_width is None :
@@ -662,7 +662,7 @@ def __eq__(self, other):
662
662
toolbar_location = 'right' ,
663
663
toolbar_options = dict (logo = None ),
664
664
merge_tools = True ,
665
- ** kwargs
665
+ ** kwargs # type: ignore
666
666
)
667
667
show (fig , browser = None if open_browser else 'none' )
668
668
return fig
@@ -719,7 +719,7 @@ def plot_heatmaps(heatmap: pd.Series, agg: Union[Callable, str], ncols: int,
719
719
plots .append (fig )
720
720
721
721
fig = gridplot (
722
- plots ,
722
+ plots , # type: ignore
723
723
ncols = ncols ,
724
724
toolbar_options = dict (logo = None ),
725
725
toolbar_location = 'above' ,
0 commit comments