yr.option
option(
label: str,
description: str | None = None,
) → OptionCreate an Option instance.
Parameters
label
type: str
The visible label for the option.
description
type: str | None = None
Optional descriptive text.
Returns
type: Option
An Option instance with given label and description.