-
If I have
I want to type
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, this isn't supported in pyright currently. I can say that personally I would find this pretty annoying and unintuitive, especially for parameters that support both positional and keyword arguments. Do you normally provide keyword arguments for all parameters? I think that's pretty far from the norm in Python code. In any case, pyright is focused on type checking, and what you're proposing here is a language server feature. While pyright has some basic language server functionality, we have no plans to add new language server features to pyright. If you'd like to see new language server functionality in pylance (the VS Code language server that's built on top of pyright), you could submit a feature request to Microsoft's pylance team here. For ideas like this, they typically wait for signal (thumbs-up reactions) from other pylance users to see if it's a broadly-desired feature. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response :)
I should've clarified, I wanted this as a configurable option or as a secondary generated snippet, definitely not the default. I am not a psycho that always names my parameters lol
This is my fault but I thought Pyright was a full LSP and not just the type checker (although it clearly says that in the README 😭) |
Beta Was this translation helpful? Give feedback.
No, this isn't supported in pyright currently. I can say that personally I would find this pretty annoying and unintuitive, especially for parameters that support both positional and keyword arguments. Do you normally provide keyword arguments for all parameters? I think that's pretty far from the norm in Python code.
In any case, pyright is focused on type checking, and what you're proposing here is a language server feature. While pyright has some basic language server functionality, we have no plans to add new language server features to pyright. If you'd like to see new language server functionality in pylance (the VS Code language server that's built on top of pyright), you could sub…