anentropic / python-waterloo

A cli tool to convert type annotations found in 'Google-style' docstrings into mypy py2 type comments (and from there into py3 type annotations).
2 stars 0 forks source link

Parser does not handle line-breaks in parenthesised docstring type #44

Closed anentropic closed 4 years ago

anentropic commented 4 years ago

function with this docstring:

    Args:
        payload_serializer_cls (
            Type[some.long.package.path.BaseBroadcastEventSerializer]
        )
        body (Dict[str, Any])

    Returns:
        Dict[str, Any]

reports "no docstrings with annotatable types found in file"

anentropic commented 4 years ago

fixed by https://github.com/anentropic/python-waterloo/pull/45