Currently, I have some code that uses mypy type annotations like this:
def translate(self, text, mark_unknown=False, format=None, deformat='txt', reformat='txt'):
# type: (Translator, str, bool, Optional[str], str, str) -> str
I want to document it with Sphinx's autodoc extension, but it appears that autodoc currently doesn't recognize these annotations, so these annotations don't show up in the generated documentation.
Is there any easy fix for this e.g. another extension or autodoc option, or must I write an actual docstring with the relevant information?