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.