-
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
Docstring for function with decorators (@property) not displayed in IntelliSense #696
Comments
Hey there, it looks like you're using Pylance, so I'm transferring it to pylance's repo. If that's not it, please do try it out and see if that fixes your issue! |
Seems like @erictraut was right: Jedi was selected as the Python language server I installed Pylance as @luabud suggested and now it displays properly like in the screenshot above. I guess I'll use Pylance from now on. Though I'm not sure if that's the optimal outcome. But thanks for helping me :D |
Does it work if you complete it and hover over |
Indeed. That's the case. I could make a video/gif showcasing that if you need it |
This will be fixed in the next version of Pylance. |
Thank you! :D |
This issue has been fixed in version 2021.2.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202120-3-february-2021 |
Environment data
Expected behaviour
IntelliSense should show the docstring for a

@property
function when hovering over it, but doesn't.It should display something like this:
Actual behaviour
It displays just its type.

Steps to reproduce:
length
inone.length
in the last linelength: int
instead ofThis should be displayed, but isn't
Maybe I'm just doing it wrong, if so please enlighten me. (I'm learning Python and it's my first time using
@property
)The text was updated successfully, but these errors were encountered: