-
Notifications
You must be signed in to change notification settings - Fork 261
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
Completion type hints #1785
base: master
Are you sure you want to change the base?
Completion type hints #1785
Conversation
It looks nice. There is some tests that are failing (travis doesn't show up in PRs anymore, but here is the link). We are still supporting python2.7 so it would be nice to make your additional test conditional. |
Resolved the existing errors but there is a random smattering of failures. I can't see how any of them would be related to my changes and I've not been able to recreate them locally or in Docker containers. I'm open to suggestions on how to proceed. |
Another solution would be to put the type hints as "meta" instead of "annotation". |
c4a2564
to
d974e00
Compare
PR Summary
See #1773
This adds support for use of the
get_type_hint
method for Jedi completions that was added 0.17.0. For appropriate proposals type hints are added as part of the completion annotation.Please let me know if there are any other locations where
get_type_hint
could be useful and I'll happily take a look.For completion candidates of functions the type hints can be quite long so it might be sensible to introduce a truncation. Let me know any thoughts.
PR checklist
Please make sure that the following things have been addressed (and check the relevant checkboxes):
For new features only: