-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[v2024.4.0] Error importing plugin "vscode_pytest": cannot import name 'Literal' from 'typing' [Py3.7] #23179
Comments
looks like PR: #22741 brought in these breaking changes |
ive opened a PR to fix https://github.com/microsoft/vscode-python/pull/23180/files |
Closing this. Python 3.7 has been out of support for about 6 months. Underlying packages have moved out of 3.7 support. We will be migrating any remaining packages out of python 3.7 as well. You can pin the extension to 2024.2.1 or older for python 3.7 support. |
@matthuisman, I am running into a similar issue on VScode. It seems like your PR was not accepted due to Python 3.7 reaching EOL. I think one solution is to pin the version of the extension to one that still supports Python 3.7, as suggested here, but I wonder if you have other workarounds? |
revert / pin to old Python Extension version is the only solution it seems Extensions -> Python -> Uninstall Down Arrow -> Install Another Version -> Select v2024.2.1 |
Behaviour
Cant load / run any pytests tests in v2024.4.0
Can see the breaking change coming in here:
v2024.2.1...v2024.4.0#diff-9a28b4b19fbb6331c15c76b4752852162785c0d521038cb637d8432901ebead2R13
should be importing from typing_extensions
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: