-
Notifications
You must be signed in to change notification settings - Fork 201
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
Improve how Jedi handles Numpy #281
Improve how Jedi handles Numpy #281
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @gav451, thanks a lot for your contribution! Besides the two suggestions I left for you below, please also update our configuration file by running
python scripts/jsonschema2md.py pylsp/config/schema.json CONFIGURATION.md
4398552
to
08c14ea
Compare
Hey @ccordoba12, I have amended my pull request taking into account your remarks. |
Thanks @gav451! One last thing I forgot to mention before: could you remove the following constraint to see if our Numpy tests pass now? python-lsp-server/pyproject.toml Line 56 in 449d11a
|
08c14ea
to
a7cc7cb
Compare
Thanks @ccordoba12 for your guidance (next time I know I have to do all development steps). I checked that the Numpy test passed before amending and force-pushing. See the short test summary below:
I had also to install |
No problem, thanks a lot for a great contribution!
Yeah, you need to install pylsp with
to get all its dependencies for testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, thanks @gav451!
The documentation of jedi.settings.auto_import_modules tells that jedi may handle numpy's module globals trickery better when importing numpy instead of parsing. The example script below prints the documentation strings of one of numpy's universal functions as well as the numpy version:
The pull request adds numpy to jedi's auto_import_modules and allows the user to modify the module list. The patch fixes:
Fixes #243.