TL DR: Use type annotations, they are awesome.
Python, jedi , . . , .
Docstrings Python function.__doc__. , . 1000 - 1 . , python -o, docstrings ( , ).
(PEP 484, def foo(a: int) -> str:) function.__annotations__:
>>> def foo(bar: int): pass
...
>>> foo.__annotations__
{'bar': <class 'int'>}
, , ( , docstrings). ( , __annotations__.
. - /IDE , , , . happing mypy, jedi , . type , .