Quick fix suggests importing symbol that is not available in pythonVersion
#4993
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Code Snippet
pyrightconfig.json
file.py
Repro Steps
override
Actual behavior
Pylance suggests "from typing import override" even though that won't work unless I'm using Python 3.12. The same is true for auto-import completions.
Expected behavior
There should be no provided quick fix.
Alternatively, I'd take the quick fix as long as I can get an error telling me it's not going to work based on the configured version of Python being too old.
The text was updated successfully, but these errors were encountered: