Closed schtibe closed 7 years ago
You should write type hints.
def hello(name: str) -> str:
return 'hello {0}'.format(name)
Generate like following.
def hello(name: str) -> str:
"""hello
:param name:
:type name: str
:rtype: str
"""
return 'hello {0}'.format(name)
Awesome, thank you!
Apparently, when looking at the multi.txt, the :rtype: would be generated as well. Yet I cannot generate a docstring containing a rtype.. how is this done?