We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53d873 commit 0bf29beCopy full SHA for 0bf29be
tests/playwright/shiny/components/chat/stream-result/app.py
@@ -1,4 +1,5 @@
1
import asyncio
2
+from typing import Union
3
4
from shiny import reactive
5
from shiny.express import render, ui
@@ -22,7 +23,9 @@ async def _(message: str):
22
23
current_stream.set(stream)
24
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
+)
29
30
31
@render.code
0 commit comments