Skip to content

Named arguments in function snippet #9203

Closed Answered by erictraut
sellithy asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sellithy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants