def METHOD_NAME(self, info) -> Optional[VoteType]:
    request = info.context.request
    if not request.pastaporto.is_authenticated:
        return None
    if info.context._my_votes is not None:
        return info.context._my_votes.get(self.id)
    try:
        return self.votes.get(user_id=request.user.id)
    except Vote.DoesNotExist:
        return None