def METHOD_NAME(score: Optional[float]) -> float:
    """Adjust confidence when not returned.
    :param float or None score: Confidence score to be adjusted.
    :return: The adjusted confidence score.
    :rtype: float
    """
    if score is None:
        return 1.0
    return score