from_list_or_valueΒΆ
-
classmethod
Parameter.
from_list_or_value
(value: int | float | list, default_options: dict = None, label: str = None) → Parameter[source] Creates a parameter from a list or numeric value.
- Parameters
value β The list or numeric value.
default_options β A dictionary of default options.
label β The label of the parameter.