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 47ae4f9 commit b30a3e7Copy full SHA for b30a3e7
chartlets.py/chartlets/components/select.py
@@ -5,7 +5,7 @@
5
6
OptionValue = str | int | float
7
SelectOption = OptionValue | tuple[OptionValue, str]
8
-"""A select option is an option value or a tuple (option value, option label)"""
+"""A select option is a number or text value or a (value, label) pair."""
9
10
11
@dataclass(frozen=True)
@@ -14,4 +14,6 @@ class Select(Component):
14
information from a list of options."""
15
16
options: list[SelectOption] = field(default_factory=list)
17
- """The options given as a list of (label, value) pairs."""
+ """The options given as a list of number or text values or a list
18
+ of (value, label) pairs.
19
+ """
0 commit comments