jam.types.base.choices.option module
- class jam.types.base.choices.option.Option(initial: Codable = Null)[source]
Bases:
ChoiceAn option is a choice that can be either None or a value.
- __init__(initial: Codable = Null)[source]
Initialize Choice.
- Parameters:
initial – Mapping of initial choice name and its value. Should have only one key.
- Raises:
ValueError – If types list is empty