Skip to content

Commit

Permalink
fix(selectize): Accept jsonifiable values in options dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed May 15, 2024
1 parent 8787772 commit 5ec3416
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shiny/ui/_input_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from shiny.types import Jsonifiable

__all__ = (
"input_select",
"input_selectize",
Expand Down Expand Up @@ -57,7 +59,7 @@ def input_selectize(
multiple: bool = False,
width: Optional[str] = None,
remove_button: Optional[bool] = None,
options: Optional[dict[str, str | float | JSEval]] = None,
options: Optional[dict[str, Jsonifiable | JSEval]] = None,
) -> Tag:
"""
Create a select list that can be used to choose a single or multiple items from a
Expand Down Expand Up @@ -137,7 +139,7 @@ def input_select(
width: Optional[str] = None,
size: Optional[str] = None,
remove_button: Optional[bool] = None,
options: Optional[dict[str, str | float | JSEval]] = None,
options: Optional[dict[str, Jsonifiable | JSEval]] = None,
) -> Tag:
"""
Create a select list that can be used to choose a single or multiple items from a
Expand Down

0 comments on commit 5ec3416

Please sign in to comment.