yr.option

option(
    label: str,
    description: str | None = None,
) → Option

Create 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.