Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for python2 type comments #946

Closed
ilinum opened this issue Jul 24, 2017 · 0 comments
Closed

Support for python2 type comments #946

ilinum opened this issue Jul 24, 2017 · 0 comments
Labels

Comments

@ilinum
Copy link

ilinum commented Jul 24, 2017

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 s is not None and s.startswith('hello')
Wilfred pushed a commit to Wilfred/jedi that referenced this issue Nov 24, 2017
This allows us to use mypy annotations for completion in Python 2.

Closes davidhalter#946
Wilfred pushed a commit to Wilfred/jedi that referenced this issue Mar 13, 2018
This allows us to use mypy annotations for completion in Python 2.

Closes davidhalter#946
Wilfred pushed a commit to Wilfred/jedi that referenced this issue Mar 13, 2018
This allows us to use mypy annotations for completion in Python 2.

Closes davidhalter#946
Wilfred pushed a commit to Wilfred/jedi that referenced this issue Mar 14, 2018
This allows us to use mypy annotations for completion in Python 2.

Closes davidhalter#946
Wilfred pushed a commit to Wilfred/jedi that referenced this issue Mar 14, 2018
This allows us to use mypy annotations for completion in Python 2.

Closes davidhalter#946
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants