Skip to content

Commit b30a3e7

Browse files
committed
fixed docstring
1 parent 47ae4f9 commit b30a3e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chartlets.py/chartlets/components/select.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
OptionValue = str | int | float
77
SelectOption = OptionValue | tuple[OptionValue, str]
8-
"""A select option is an option value or a tuple (option value, option label)"""
8+
"""A select option is a number or text value or a (value, label) pair."""
99

1010

1111
@dataclass(frozen=True)
@@ -14,4 +14,6 @@ class Select(Component):
1414
information from a list of options."""
1515

1616
options: list[SelectOption] = field(default_factory=list)
17-
"""The options given as a list of (label, value) pairs."""
17+
"""The options given as a list of number or text values or a list
18+
of (value, label) pairs.
19+
"""

0 commit comments

Comments
 (0)