-
Notifications
You must be signed in to change notification settings - Fork 771
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 new line from dict() help mouse hover #3118
Comments
doc string formatter issue. |
Looking at this in the context of supporting restructured text. Builtins are not in restructured text format. The docstring for dict for example is this:
Parsing this into rest, it's just one big paragraph. Paragraphs (when shown in Markdown) eliminate extra tabs on purpose. Otherwise something like this wouldn't wrap correctly:
|
Builtins may then have to be formatted literally. Or at least special cased to add literal indents. |
This issue has been fixed in prerelease version 2024.6.100, which we've just released. You can find the changelog here: CHANGELOG.md |
The fix for this issue is behind an experimental feature flag: "python.analysis.supportRestructuredText": true If you want to try out our new restructuredText support, enable this flag. It's behind a flag at the moment until we can make sure it handles all the possible Sphinx/GoogleDoc/Epytext scenarios that customers need. Please log additional issues if this setting isn't working out for you. Thanks :) |
Environment data
Code Snippet
XXX
Repro Steps
dict()
Expected behavior
newline after
d = {}
.Actual behavior
screen shot from
help(dict)
Logs
The text was updated successfully, but these errors were encountered: