Functionality for general Notion objects like texts, files, options, etc.
Option(name: str, *, color: Color | str = Color.DEFAULT)
Option for select & multi-select property.
__eq__(other: object) -> bool
description() -> str
Description of the option.
OptionGroup(*args: Any, **kwargs: Any)
Group of options for status property.
name: str
property
Name of the option group.
options: list[Option]
property
Options within this option group.
wrap_obj_ref(obj_ref, /, *, options: list[Option] | None = None) -> OptionGroup
classmethod
Convienence constructor for the group of options.
OptionNS
Option namespace to simplify working with (Multi-)Select options.
to_list() -> list[Option]
classmethod
Convert the enum to a list as needed by the (Multi)Select property types.
OptionNSType
Metaclass to implement len
for type OptionNS
itself, not an instance of it.