import aiohttp


async def text_callback(resp: aiohttp.ClientResponse) -> str:
    """Returns the response result as text.

    Mostly useful for endpoints that returns just text on its output. Some
    examples::

        $ curl ifconfig.me/ip
        123.123.123.123
        $ curl 'wttr.in/?format=%t'
        +31°C
    """
    return await resp.text()