def METHOD_NAME(url: str, params: Dict[str, str]) -> str:
    """
    Given a URL, update the query parameters and return the
    modified URL.
    >>> update_query_params('http://example.com?foo=bar&biz=baz', {'foo': 'stuff'})
    'http://example.com?foo=stuff&biz=baz'
    """
    scheme, netloc, path, query_string, fragment = urlsplit(url)
    query_params = parse_qs(query_string)
    query_params.update(params)
    new_query_string = urlencode(query_params, doseq=True)
    return urlunsplit(
        (str(scheme), str(netloc), str(path), str(new_query_string), str(fragment))
    )