How do I indicate types for lists, optional arguments and return types for generators on Google-style docstrings using Sphinx-Napoleon?
I've tried
List[type]
list of type
Optional[type]
type, optional
and
Yields:
type:
respectively; but all produce unsatisfactory output that is not consistent with the rest of the generated documentation. For example
Optional[type]
just gives
Optional[type]
without any link for type
.
I've tried every builtin theme and have the same issues.
How should I be documenting these elements using Google-style docstrings with Sphinx-Napoleon?