Python inlay type hints #7328
-
In VS Code, you could have Pylance which could offer inlay type hints: Is this part of the Positron roadmap? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 16 replies
-
BasedPyright provides this functionality for VS Code-based editors such as Positron. But I get this annoying pop-up everytime I start Positron: |
Beta Was this translation helpful? Give feedback.
-
I dont find basedpyright is the good alternative. I hope Posit team can do something to improve the Jedi LSP to get on par with Pylance. |
Beta Was this translation helpful? Give feedback.
-
For those who are interested in a BasedPyright version compatible with Positron: I’ve created a custom fork of BasedPyright tailored for use with Positron. It resolves the persistent popup issue and disables features that overlap with positron-python by default. To use it:
That’s it — you’re all set. |
Beta Was this translation helpful? Give feedback.
-
@juliasilge with my customised basedpyright extension, the user has two parallel sets of LSP support. Now my extension turns of the overlapping LSP features by default. Nevertheless, sometimes I find the basedpyright features are more helpful (in the screenshot, basedpyright infers the return type while Positron's built-in feature doesn't). In this case I would like to disable the hover from positron-python. Would it be preferable if we allow users to cherry pick the features they want from either language service by a consistent series of settings respected by both Positron and basedpyright extension? I can write a PR if that's the preferred way. |
Beta Was this translation helpful? Give feedback.
I opened #7393 for the problem with that setting, so we can look into what's going on. Thanks for the report! 🙌