ruff
0f373603 - [ty] Suppress keyword argument completions unless we're in the "arguments"

Commit
7 days ago
[ty] Suppress keyword argument completions unless we're in the "arguments" Otherwise, given a case like this: ``` (lambda foo: (<CURSOR> + 1))(2) ``` we'll offer _argument_ completions for `foo` at the cursor position. While we do actually want to offer completions for `foo` in this context, it is currently difficult to do so. But we definitely don't want to offer completions for `foo` as an argument to a function here. Which is what we were doing. We also add an end-to-end test here to verify that the actual label we offer in completion suggestions includes the `=` suffix. Closes https://github.com/astral-sh/ruff/pull/21970
Author
Committer
Parents
Loading