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

Fix Jedi type map (use types offered by modern Jedi) #18

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

krassowski
Copy link
Contributor

The type map used by Jedi completion is severely outdated (includes types that are never returned by Jedi, and is missing types which are). This PR updates the types list (including future-proof namespace which is going to be introduced in next release) and adds a test to verify that these types actually are returned by Jedi for objects of such types (and properly mapped to LSP types).

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help @krassowski! I left a minor comment, otherwise looks good to me.

test/plugins/test_completion.py Outdated Show resolved Hide resolved
@andfoy andfoy added this to the v1.1.0 milestone Apr 29, 2021
Copy link
Contributor

@andfoy andfoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @krassowski!

@andfoy andfoy merged commit 5a13db1 into python-lsp:develop Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants