Support function type annotation comment
Function type annotation comment (e.g. # type: ...
) before docstring (following code snippet) is now supported.
def sample_func(sample_num):
# type: (int) -> None
"""
Sample description.
...
"""
See Also: PEP 484 -- Type Hints