Skip to content

Commit d3802c9

Browse files
committed
for python 3.9 compatibility
1 parent a96032f commit d3802c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shiny/express/ui/_insert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@ui.hold() pass the UI as a value without displaying it.
99
"""
1010

11-
from typing import Literal, Optional
11+
from typing import Literal, Optional, Union
1212

1313
from htmltools import TagAttrs, TagChild
1414

@@ -21,8 +21,8 @@
2121
def insert_accordion_panel(
2222
id: str,
2323
panel_title: str,
24-
*panel_contents: TagChild | TagAttrs,
25-
panel_value: str | MISSING_TYPE | None = MISSING,
24+
*panel_contents: Union[TagChild, TagAttrs],
25+
panel_value: Union[str, MISSING_TYPE, None] = MISSING,
2626
panel_icon: TagChild = None,
2727
target: Optional[str] = None,
2828
position: Literal["after", "before"] = "after",

0 commit comments

Comments
 (0)