def METHOD_NAME(
    self, **generator_kwargs: str | int | dict[str, str]
) -> Iterator[praw.models.Comment | praw.models.Submission]:
    """Return a :class:`.ListingGenerator` for items the user has upvoted.
    :returns: A :class:`.ListingGenerator` object which yields :class:`.Comment` or
        :class:`.Submission` objects the user has upvoted.
    :raises: ``prawcore.Forbidden`` if the user is not authorized to access the
        list.
        .. note::
            Since this function returns a :class:`.ListingGenerator` the exception
            may not occur until sometime after this function has returned.
    Additional keyword arguments are passed in the initialization of
    :class:`.ListingGenerator`.
    For example, to get all upvoted items of the authenticated user:
    .. code-block:: python
        for item in reddit.user.me().upvoted():
            print(item.id)
    """
    return ListingGenerator(
        self._reddit, urljoin(self._path, "upvoted"), **generator_kwargs
    )