def _get_candidate(self, pos: int) -> Candidate:
    if ((not self._candidates) or (pos > len(self._candidates))):
        return {}
    return self._candidates[(pos - 1)]
def _get_candidate(self, pos: int) -> Candidate:
    if ((not self._candidates) or (pos > len(self._candidates))):
        return {}
    return self._candidates[(pos - 1)]