Add a docstring to the internal copy of the selection value

This commit is contained in:
Dave Pearson
2023-05-23 11:07:45 +01:00
parent 81abac1c68
commit fefb33a23b

View File

@@ -51,6 +51,7 @@ class Selection(Generic[SelectionType], Option):
prompt = Text.from_markup(prompt)
super().__init__(prompt.split()[0], id, disabled)
self._value: SelectionType = value
"""The value associated with the selection."""
@property
def value(self) -> SelectionType: