def _get_selected_candidates(self) -> Candidates:
    if (not self._selected_candidates):
        return ([self._get_cursor_candidate()] if self._get_cursor_candidate() else [])
    return [self._candidates[x] for x in self._selected_candidates]
def _get_selected_candidates(self) -> Candidates:
    if (not self._selected_candidates):
        return ([self._get_cursor_candidate()] if self._get_cursor_candidate() else [])
    return [self._candidates[x] for x in self._selected_candidates]