miniblog.
← Back to all posts
Wilfred Hughes
Mar 15, 2018 at 08:21
Jedi, the excellent Python code completion library used by many editors and even ipython, now supports mypy annotations in Python 2!
https://github.com/davidhalter/jedi/issues/946
🎉
Support for python2 type comments · Issue #946 · davidhalter/jedi
Currently, jedi only supports type hints for functions using python3 syntax. It would be great to support type comments, which is widely used with python2. def foo(s): # type: (str) -> bool return ...