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_hintmethod 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_hintcould 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: