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

Missing docstring for np.sqrt #1740

Closed
EternalLines opened this issue Aug 30, 2021 · 5 comments
Closed

Missing docstring for np.sqrt #1740

EternalLines opened this issue Aug 30, 2021 · 5 comments
Labels
docstrings needs investigation Could be an issue - needs investigation

Comments

@EternalLines
Copy link

Hi,

This is the docstring given when Pylance is chosen as the language server:
Pylance_docstrings

This is the docstring given when JediLSP is chosen as the language server:
Jedi_docstrings

They are different and the docstring given by Pylance is not useful (and it is perhaps retrieving docstring of some base class?). Is there a way to resolve this?

Thanks!

@yvvt0379
Copy link

I also met the same problem

@jakebailey
Copy link
Member

Jedi executes compiled code to get its docstrings, Pylance does not, instead shipping a pre-scraped version for docs. It looks like our current handling could be improved here; the intent is that this works.

@judej judej added the needs investigation Could be an issue - needs investigation label Aug 30, 2021
@github-actions github-actions bot removed the triage label Aug 30, 2021
@judej
Copy link
Contributor

judej commented Aug 30, 2021

What version of NumPy are you using?

@judej judej added the waiting for user response Requires more information from user label Aug 30, 2021
@EternalLines
Copy link
Author

I am using version 1.21.2.

@jakebailey jakebailey removed the waiting for user response Requires more information from user label Aug 31, 2021
@jakebailey jakebailey changed the title Different docstrings under different language servers Missing docstring for np.sqrt Aug 31, 2021
@jakebailey
Copy link
Member

This was actually fixed in 2021.9.1; it was the same as #1047.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docstrings needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants