Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Properly choose which parameter is active in signature help #1610
Our code in the signature source to pick which parameter is active is just:
Which is basically just "count the number of arguments at the call site then use that as the parameter number". But this definitely doesn't work when
If I have:
def func(a, b, *args, **kwargs): ...
This might take extracting some ArgumentSet logic out into a common place, or even constructing an ArgumentSet at the signature help request and then reading info back out of it.