Skip to content
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

Jedi doesn’t seem to know about the int.bit_count method #328

Closed
Openstreetmapler opened this issue Dec 21, 2024 · 3 comments
Closed

Jedi doesn’t seem to know about the int.bit_count method #328

Openstreetmapler opened this issue Dec 21, 2024 · 3 comments

Comments

@Openstreetmapler
Copy link

Originally submitted at microsoft/pylance-release#6786


Environment data

  • Jedi language server version: unknown, shipped with the VSCodium version of the Microsoft VSCode Python extension, extension ID ms-python.python, version 2024.22.0
  • OS and version: Ubuntu 22.04 and macOS 12.7.5
  • Python versions: Python 3.10.12 on Ubuntu, 3.10.7 on macOS

Code Snippet

Type the following into VSCodium:

number = 123
number.bit_count()

While typing the second line, the Python extension will suggest bit_length but not bit_count even though the latter function was added to the int class with Python 3.10.

Expected behavior

After typing number.bit_, both bit_count and bit_length are suggested as auto-completions.

Actual behavior

After typing number.bit_, only bit_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.

@davidhalter
Copy link

davidhalter commented Dec 21, 2024

This is most likely because typeshed is outdated in Jedi.

@davidhalter
Copy link

This is the relevant issue: davidhalter/jedi#2009

This issue should probably be closed.

@Openstreetmapler
Copy link
Author

Closing as not planned

@Openstreetmapler Openstreetmapler closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants