Skip to content

Commit 8057441

Browse files
committed
Python 3.9 typing support
1 parent 6a44617 commit 8057441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shiny/ui/_markdown_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888

8989
with session_context(self._session):
9090
self._latest_stream: reactive.Value[
91-
reactive.ExtendedTask[[], str] | None
91+
Union[reactive.ExtendedTask[[], str], None]
9292
] = reactive.Value(None)
9393

9494
async def stream(
@@ -151,7 +151,7 @@ async def _handle_error():
151151

152152
return _task
153153

154-
def get_latest_stream_result(self) -> str | None:
154+
def get_latest_stream_result(self) -> Union[str, None]:
155155
"""
156156
Reactively read the latest stream result.
157157

0 commit comments

Comments
 (0)