diff --git a/shiny/ui/_input_date.py b/shiny/ui/_input_date.py index 1399bdbad..12258e8f1 100644 --- a/shiny/ui/_input_date.py +++ b/shiny/ui/_input_date.py @@ -102,7 +102,7 @@ def input_date( Notes ------ ::: {.callout-note title="Server value"} - A :class:`~datetime.date` object. + A :class:`~datetime.date` object or `None` if the user deletes the input field. ::: See Also @@ -223,7 +223,8 @@ def input_date_range( Notes ------ ::: {.callout-note title="Server value"} - A tuple of :class:`~datetime.date` objects. + A 2-element tuple containing :class:`~datetime.date` objects or `None`. Each tuple + element will be `None` if the user deletes the corresponding input field. ::: See Also diff --git a/shiny/ui/_input_numeric.py b/shiny/ui/_input_numeric.py index 1be180782..85492d049 100644 --- a/shiny/ui/_input_numeric.py +++ b/shiny/ui/_input_numeric.py @@ -55,7 +55,7 @@ def input_numeric( Notes ------ ::: {.callout-note title="Server value"} - A numeric value. + An `int`, `float` or `None` (if the user deletes the input field). ::: See Also diff --git a/shiny/ui/_input_select.py b/shiny/ui/_input_select.py index 4d144b3ca..26c33e6a6 100644 --- a/shiny/ui/_input_select.py +++ b/shiny/ui/_input_select.py @@ -43,9 +43,7 @@ _topics = { "Server value": """ If `multiple=False`, the server value is a string with the value of the selected item. -If `multiple=True`, the server value is a tuple containing the values of the -selected items. When ``multiple=True`` and nothing is selected, this value -will be ``None``. +If `multiple=True`, the server value is a tuple of string(s) with the selected value(s) (if any). """ }