Skip to content

Commit ad7832e

Browse files
committed
add type annotation for one file
1 parent 0e0f186 commit ad7832e

File tree

1 file changed

+2
-1
lines changed
  • tests/playwright/shiny/components/chat/shiny_output

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +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
45
from shinywidgets import render_plotly, render_widget
56

67
from shiny import reactive, render
@@ -55,7 +56,7 @@ async def _():
5556
with ui.hold() as plot_ui:
5657

5758
@render_plotly
58-
def plot():
59+
def plot() -> Figure:
5960
dat = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
6061
return px.scatter(dat, x="x", y="y") # pyright: ignore[reportUnknownMemberType]
6162

0 commit comments

Comments
 (0)