Skip to content

Commit 7a059ce

Browse files
committed
Add type annotations to server function
Imported Inputs, Outputs, and Session from shiny.session and updated the server function signature to include type annotations for improved type safety and clarity.
1 parent 733f5dd commit 7a059ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/playwright/shiny/bugs/2013-selectize-set-does-not-clear/app_selectize.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from shiny import App, render, ui
2+
from shiny.session import Inputs, Outputs, Session
23

34
app_ui = ui.page_fluid(
45
ui.input_selectize(
@@ -11,7 +12,7 @@
1112
)
1213

1314

14-
def server(input, output, session):
15+
def server(input: Inputs, output: Outputs, session: Session) -> None:
1516
@render.text
1617
def test_selectize_output():
1718
return f"Selected: {', '.join(input.test_selectize())}"

0 commit comments

Comments
 (0)