-
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
Wrong attribute prompt about the built-in attribute “__name__" of class. #154
Comments
Thanks for the bug report. This will be fixed in the next version of Pyright and Pylance. |
@erictraut Thanks for your reply.😁 |
Thanks, this will be fixed as well. |
This issue has been fixed in version 2020.7.4, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202074-29-july-2020 |
@jakebailey @erictraut |
Thanks for the bug report. You are correct that most of these attributes should not appear on instances. The This will be fixed in the next release of Pylance. |
|
We previously hard-coded some of these attribute names. I've removed these hard-coded names and now use the |
This issue has been fixed in version 2020.8.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202083-28-august-2020 |
According to the python official doc, the attribute "name" is just the class ,type ,etc. So the instance can not get the attribute "name", but the pyplance show the "name" attr in instance .
The text was updated successfully, but these errors were encountered: