Show class attribute documentation on hover, similar to how parameter documentation is displayed #6023
macintacos
started this conversation in
Enhancement
Replies: 1 comment
-
The Moving this issue to discussions as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When hovering over a class attribute, it would be great if it showed documentation for that attribute, similar to how documentation hover works for parameters within a method.
Here's an example (using the syntax resolved in #3347 - I'm currently using the pre-release version of Pylance,
v2024.6.100 (pre-release)
):Here's what I see when I hover my mouse over
bar
in the lastprint(test.bar)
line:And here's what I see when I hover my mouse over
thing
inFood.some_method
:I know that Pylance is "aware" of these parameters and their documentation, because it does get shown to me as I type:
As such, it would be great if that same documentation bits for class attributes could be shown in the hover window like parameters' documentation is shown for methods.
Beta Was this translation helpful? Give feedback.
All reactions