Skip to content

Commit e0a43a5

Browse files
committed
No need to ignore typing
1 parent 5cea47a commit e0a43a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shinywidgets/_render_widget_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def set_layout_defaults(widget: Widget) -> Tuple[Widget, bool]:
173173

174174
# Plotly provides it's own layout API (which isn't a subclass of ipywidgets.Layout)
175175
if pkg == "plotly":
176-
from plotly.graph_objs import Layout as PlotlyLayout # pyright: ignore
177-
from plotly.basewidget import BaseFigureWidget # pyright: ignore
176+
from plotly.graph_objs import Layout as PlotlyLayout
177+
from plotly.basewidget import BaseFigureWidget
178178

179179
if isinstance(layout, PlotlyLayout):
180180
if layout.height is not None:
@@ -194,7 +194,7 @@ def set_layout_defaults(widget: Widget) -> Tuple[Widget, bool]:
194194
if isinstance(widget, BaseFigureWidget):
195195
# Reassigning the layout to a FigureWidget drops installed callbacks;
196196
# use native update_layout instead.
197-
widget.update_layout(layout) # pyright: ignore
197+
widget.update_layout(layout)
198198
else:
199199
widget.layout = layout
200200

0 commit comments

Comments
 (0)