Skip to content

Commit 52cc2db

Browse files
gadenbuiewch
andauthored
fix(selectize): Accept jsonifiable values in options dictionary (#1382)
Co-authored-by: Winston Chang <[email protected]>
1 parent df7569a commit 52cc2db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

shiny/ui/_input_select.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from __future__ import annotations
44

5+
from ..types import Jsonifiable
6+
57
__all__ = (
68
"input_select",
79
"input_selectize",
@@ -57,7 +59,7 @@ def input_selectize(
5759
multiple: bool = False,
5860
width: Optional[str] = None,
5961
remove_button: Optional[bool] = None,
60-
options: Optional[dict[str, str | float | JSEval]] = None,
62+
options: Optional[dict[str, Jsonifiable | JSEval]] = None,
6163
) -> Tag:
6264
"""
6365
Create a select list that can be used to choose a single or multiple items from a
@@ -137,7 +139,7 @@ def input_select(
137139
width: Optional[str] = None,
138140
size: Optional[str] = None,
139141
remove_button: Optional[bool] = None,
140-
options: Optional[dict[str, str | float | JSEval]] = None,
142+
options: Optional[dict[str, Jsonifiable | JSEval]] = None,
141143
) -> Tag:
142144
"""
143145
Create a select list that can be used to choose a single or multiple items from a

0 commit comments

Comments
 (0)