Skip to content

Commit 0bf29be

Browse files
committed
Fix 3.9 typing
1 parent b53d873 commit 0bf29be

File tree

1 file changed

+4
-1
lines changed
  • tests/playwright/shiny/components/chat/stream-result

1 file changed

+4
-1
lines changed

tests/playwright/shiny/components/chat/stream-result/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
from typing import Union
23

34
from shiny import reactive
45
from shiny.express import render, ui
@@ -22,7 +23,9 @@ async def _(message: str):
2223
current_stream.set(stream)
2324

2425

25-
current_stream: reactive.value[ExtendedTask[[], str] | None] = reactive.value(None)
26+
current_stream: reactive.value[Union[ExtendedTask[[], str], None]] = reactive.value(
27+
None
28+
)
2629

2730

2831
@render.code

0 commit comments

Comments
 (0)