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

sklearn stubs override sklearn #6780

Open
flying-sheep opened this issue Dec 17, 2024 · 0 comments
Open

sklearn stubs override sklearn #6780

flying-sheep opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@flying-sheep
Copy link

flying-sheep commented Dec 17, 2024

Environment data

  • Pylance version: 2024.12.1
  • OS and version: macOS 15.1.1
  • Python version: Any

Code Snippet

from sklearn.util import Tags

Repro Steps

Install scikit-learn==1.6.0

Expected behavior

Uses Tags dataclass definition directly from code

Actual behavior

Pretends Tags doesn’t exist (highlighted as black “Any”-typed variable), because it takes the sklearn.utils definition from the bundled type stubs

Logs

N/A

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants