Clarify role of pyrightconfig.json
in resolving interpreter
#5684
raulparada
started this conversation in
Enhancement
Replies: 1 comment
-
Transfering to a discussion item for up votes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I spent a good few hours trying to resolve an issue using syntax introduced on python 3.12. The error was:
I looked absolutely everywhere, e.g.:
...and I was convinced that Pylance was using the wrong interpreter. In the end, it was cause a
pyrightconfig.json
on the root of my working directory hadpythonVersion
set to a lower version (3.10). I had forgotten this file even existed, and the naming of things (pyright vs pylance) certainly doesn't help to figure this out.I think the extension should clearly communicate where a configuration is causing a conflict like this (interpreter on 3.12, config file on 3.10).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions