-
Notifications
You must be signed in to change notification settings - Fork 767
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 docstrings for math module, other compiled stdlib libraries #465
Comments
This is currently expected behavior; math is a compiled module and therefore has no source code we can read for docstrings. We recently added support for the builtins module's docstrings; this would be an extension of that (but is more difficult to handle). |
I have custom compiled modules that pylance doesn't show docstring information for. Jedi works great. It would go along way to enable docstrings for compiled modules. |
It's not generally in our plan to analyze non-stdlib compiled code for anything; doing so is unsafe as it executes the modules. We'd need to examine that separately (and I believe there are a few open issues related to that under the compiled label). |
Retitled this to note that there are other modules in the standard library that would be worthwhile to get docs for (e.g., itertools). |
This issue has been fixed in version 2021.4.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202143-29-april-2021 |
using spyder Spyder 4.2.5 , where: When i run the same from the ipython console - all works fine : |
Environment data
Expected behaviour
Expected Intellisense to bring up docstring for math
Actual behaviour
Logs
The text was updated successfully, but these errors were encountered: