from typing import Dict
import re


def parse_docstring(docstring: str) -> Dict[str, str]:
    """ Parse a docstring into a dict mapping argument name to docstring """
    argument_pattern = re.compile(r" *:param ([a-zA-Z0-9_]*)( *)(.*?):( *)(.*)")
    return {match.group(1): match.group(5) for line in docstring.split('\n') for match in [argument_pattern.match(line)] if match is not None}