-
Notifications
You must be signed in to change notification settings - Fork 766
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
[Bug] Incorrect reportShadowedImports on Python 3.10 venv and override #4762
Comments
I'm not able to repro the problem with the steps described above. I suspect there's something else needed to repro the problem. Are you able to recreate the error if you start with a clean venv and a clean project? Do you have a local file in your project called |
Interesting! This is the exact error, my apologies for not including it:
A quick look in the repo doesn't show anything outside the venv with that name:
Here is the list of installed packages in that venv:
|
that's probably because you added explicit my guess is due to that, now try adding |
That certainly seems to work! Thank you. EDIT: Though it would be nice that the currently selected virtual environment was excluded by Pylance. |
Environment data
Code Snippet
Repro Steps
pip install typing_extensions
to get access tooverride
Expected behavior
No
reportShadowedImports
.Actual behavior
reportShadowedImports
on the line:Logs
...the volume of logs generated was pretty crazy for this monorepo.
The text was updated successfully, but these errors were encountered: