Skip to content

Commit 2767868

Browse files
committed
use correct imports
1 parent 3fef48a commit 2767868

File tree

2 files changed

+3
-2
lines changed
  • tests/playwright/shiny/components

2 files changed

+3
-2
lines changed

tests/playwright/shiny/components/chat/shiny_output/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ipyleaflet as ipyl # pyright: ignore[reportMissingTypeStubs]
22
import pandas as pd
33
import plotly.express as px # pyright: ignore[reportMissingTypeStubs]
4-
from plotly.graph_objs import Figure
4+
from plotly.graph_objs._figure import Figure
55
from shinywidgets import render_plotly, render_widget
66

77
from shiny import reactive, render

tests/playwright/shiny/components/data_frame/edit/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import great_tables as gt
1818
import palmerpenguins # pyright: ignore[reportMissingTypeStubs]
1919
import polars as pl
20+
from plotly.graph_objs._figure import Figure
2021

2122
from shiny import App, Inputs, Outputs, Session, module, reactive, render, req, ui
2223
from shiny.render import CellPatch
@@ -264,7 +265,7 @@ def df_styles_fn(data: pd.DataFrame) -> list[StyleInfo]:
264265
# from shiny import reactive
265266

266267
@render_widget
267-
def country_detail_pop():
268+
def country_detail_pop() -> Figure:
268269
import plotly.express as px
269270

270271
return px.line(

0 commit comments

Comments
 (0)