pyright vs pylance issue - backports.strenum #5569
Unanswered
AbdealiLoKo
asked this question in
Q&A
Replies: 1 comment
-
If you set pyright to verbose, it should list out the paths it used to search for the import. Like so:
Then in pylance you could change the import to force a failure and set pylance to verbose. The output in pylance would then show the search paths it used and you could compare the two. My guess is something in your environment is different: |
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 am trying to use pyright for an existing project, and have a buuunch of issues I am trying to fix.
Like many others - I am trying to use pyright on my github actions and pylance in VSCode.
Note - I already went through: https://github.com/microsoft/pylance-release/blob/main/USING_WITH_PYRIGHT.md
I am getting this error in pyright:
But I do not see any such problem with pylance in VScode when I open that file.
I have checked that there are no stubs that tpylance provides for backports.strenum at: https://github.com/microsoft/python-type-stubs/tree/main/stubs
So, I was wondering - what is causing the different between pylance and pyright here ?
Beta Was this translation helpful? Give feedback.
All reactions