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

Pylance treating random.choice() as a variable and not a function. #6564

Closed
Punity122333 opened this issue Oct 16, 2024 · 1 comment
Closed
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@Punity122333
Copy link

Environment data

  • Pylance version: v2024.10.1
  • OS and version: Ubuntu 24.04 LTS (Kubuntu)
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.12.3

Code Snippet

from random import choice

Expected behavior

Pylance thinks random.choice() is a function and highlights it yellow.

Actual behavior

Pylance thinks random.choice() is a variable (not a function) and highlights it blue.

Image

Logs

pylancelogs.txt

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Oct 16, 2024
@debonte
Copy link
Contributor

debonte commented Oct 16, 2024

Thanks for the issue. This is a duplicate of #5841.

@debonte debonte closed this as completed Oct 16, 2024
@debonte debonte added duplicate This issue or pull request already exists and removed needs repro Issue has not been reproduced yet labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants