-
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
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
![](https://camo.githubusercontent.com/baf8b4b686a4c95e24e47ff0941cb4a88b2029392c53ad28393f1230e3105a61/68747470733a2f2f692e696d6775722e636f6d2f433143466a6f332e706e67)
@property
function when hovering over it, but doesn't.It should display something like this:
Actual behaviour
It displays just its type.
![](https://camo.githubusercontent.com/eb9bc86967190e0ad438c2b8be318158a1e2b6a9dcda6583652030df79c52e2a/68747470733a2f2f692e696d6775722e636f6d2f694235365848452e706e67)
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: