(bundle: dict)
Returns the URL for the next page of a paginated ``bundle``.

    >>> bundle = {
    ...     'link': [
    ...         {'relation': 'self', 'url': 'https://example.com/page/2'},
    ...         {'relation': 'next', 'url': 'https://example.com/page/3'},
    ...         {'relation': 'previous', 'url': 'https://example.com/page/1'},
    ...     ]
    ... }
    >>> get_next_url(bundle)
    'https://example.com/page/3'

    >>> bundle = {
    ...     'link': [
    ...         {'relation': 'self', 'url': 'https://example.com/page/1'},
    ...     ]
    ... }
    >>> type(get_next_url(bundle))
    <class 'NoneType'>
Returns the URL for the next page of a paginated ``bundle``.
Returns the URL for the next page of a paginated bundle .
def get_next_url(bundle: dict) -> Optional[str]:
    """
    Returns the URL for the next page of a paginated ``bundle``.

    >>> bundle = {
    ...     'link': [
    ...         {'relation': 'self', 'url': 'https://example.com/page/2'},
    ...         {'relation': 'next', 'url': 'https://example.com/page/3'},
    ...         {'relation': 'previous', 'url': 'https://example.com/page/1'},
    ...     ]
    ... }
    >>> get_next_url(bundle)
    'https://example.com/page/3'

    >>> bundle = {
    ...     'link': [
    ...         {'relation': 'self', 'url': 'https://example.com/page/1'},
    ...     ]
    ... }
    >>> type(get_next_url(bundle))
    <class 'NoneType'>

    """
    if 'link' in bundle:
        for link in bundle['link']:
            if link['relation'] == 'next':
                return link['url']
def get_next_url ( bundle : dict ) -> Optional [ str ] : if 'link' in bundle : for link in bundle [ 'link' ] : if link [ 'relation' ] == 'next' : return link [ 'url' ]