Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
|
👋 @sobolevn would you be interested to take another look? |
Sorry, something went wrong.
There was a problem hiding this comment.
I agree with the fix in general. However, there are still some things to polish and improve :)
Thanks a lot for your work!
Sorry, something went wrong.
|
Thanks for your suggestions, @sobolevn. Should I move some of the new cases to test_signature_bind_posonly_kwargs()? |
Sorry, something went wrong.
There was a problem hiding this comment.
@serhiy-storchaka do you have any additional feedback?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
|
Thanks @jacobtylerwalls for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Thanks @jacobtylerwalls for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
|
GH-118984 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-118985 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
gh-87106
Closes #87106
If a function signature has a variadic keyword argument (like **kwargs), then providing a keyword with the same name as a positional-only argument will still succeed, and become available on kwargs.
Before
inspect.signature(f).bind(pos_only='val') might either:
Now
These are fixed.
Prior related work
#16800