import typing


def parse_params_section(params_doc: str) -> typing.Dict[str, str]:
    """Parses params documentation and returns a dict with one element per parameter."""
    descs = {}
    lines = iter((l[4:] for l in params_doc.splitlines()))
    content = next(lines)
    for l in lines:
        if not l.startswith(' '):
            try:
                name, desc = content.split(':', 1)
            except ValueError:
                name, desc = content, ''
            descs[name] = ' '.join(desc.split())
            content = l
            continue
        content += l
    try:
        name, desc = content.split(':', 1)
    except ValueError:
        name, desc = content, ''
    descs[name] = ' '.join(desc.split())

    return descs