def get_validated_user_ids(user_ids: Iterable[int]) -> List[int]:
    for user_id in user_ids:
        if (not isinstance(user_id, int)):
            raise JsonableError(_('Recipient lists may contain emails or user IDs, but not both.'))
    return list(set(user_ids))
def get_validated_user_ids(user_ids: Iterable[int]) -> List[int]:
    for user_id in user_ids:
        if (not isinstance(user_id, int)):
            raise JsonableError(_('Recipient lists may contain emails or user IDs, but not both.'))
    return list(set(user_ids))