-
Notifications
You must be signed in to change notification settings - Fork 768
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
Pylance doesn’t seem to know about the int.bit_count method #6786
Comments
Can you include the log as described here? https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue That should tell us which version we think python is. It might be that the version you picked doesn't run for some reason and we can't get the version information from it. |
No, I can’t. For me, Wait a moment, I found this in the logs:
As I prefer VSCodium over the faux-open-source VSCode, I’m actually using the Jedi language server, not Pylance. |
Environment data
/bin/python3
Code Snippet
Type the following into VSCode/VSCodium:
While typing the second line, the Python extension will suggest
bit_length
but notbit_count
even though the latter function was added to theint
class with Python 3.10.Expected behavior
After typing
number.bit_
, bothbit_count
andbit_length
are suggested as auto-completions.Actual behavior
After typing
number.bit_
, onlybit_length
is suggested.Logs
N/A – I don’t think this issue needs a log trace as it’s just a missing feature or oversight, in my opinion.
The text was updated successfully, but these errors were encountered: