Pylance and Pyright CLI does not have the same output #3638
Unanswered
PierreSnell
asked this question in
Ideas
Replies: 1 comment
-
you can use basedpyright, which is an open-source fork of pyright that allows you to use the same version of pyright in both the CLI and in vscode. it does not have all of pylance's features unfortunately since pylance is closed source. however we have re-implemented some pylance exclusive features such as inlay hints, semantic highlighting and import suggestion code actions, and we intend to add more in the future. |
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
-
Regarding #3045 (comment) and softboiler/boilerdata#58
The only way to make pyright and pylance have the same output is to give pyright the path to pylance-extension stubs (seems obvious).
However, this is not useful when using CI (like GitHub actions) as we need to host on our own a copy of the local stubs (microsoft/python-type-stubs doesn't seems enough).
Is there a possibility for the pylance team to host/give access to the stubs so we can run pyright in CI and have the "If there is no issue in VsCode, there is no problem in the CI" development experience ?
Beta Was this translation helpful? Give feedback.
All reactions