cbillingham/docconvert

Skip colon when an empty type is specified and writing a google docstring

Closed this issue · 2 comments

Reading the following docstring

"""
Description

:return: A thing
:rtype: C{}
"""

results in the following Google docstring

"""Description

Returns:
     : A thing
"""

I would expect the colon to be skipped in the output because the type is empty.

Same situation for this one.
I get this output with the current version:

"""Description

Returns:
    C{}: A thing
"""

I can't reproduce this one again either. I'm not sure why it failed the first time.