{{ message }}
gh-87106: Fix inspect.signature.bind handling of positional-only arguments with **kwargs - #103404
Merged
Merged
Conversation
…nly arguments with `**kwargs`
sobolevn
reviewed
Apr 10, 2023
Contributor
Author
sobolevn
reviewed
May 5, 2024
sobolevn
left a comment
Member
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!
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
jacobtylerwalls
commented
May 5, 2024
Contributor
Author
|
Thanks for your suggestions, @sobolevn. Should I move some of the new cases to |
sobolevn
approved these changes
May 9, 2024
sobolevn
left a comment
Member
There was a problem hiding this comment.
@serhiy-storchaka do you have any additional feedback?
serhiy-storchaka
self-requested a review
May 9, 2024 13:17
|
Thanks @jacobtylerwalls for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Thanks @jacobtylerwalls for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
May 13, 2024
…nly arguments with **kwargs (pythonGH-103404) (cherry picked from commit 9c15202) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
May 13, 2024
…nly arguments with **kwargs (pythonGH-103404) (cherry picked from commit 9c15202) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
GH-118984 is a backport of this pull request to the 3.12 branch. |
serhiy-storchaka
pushed a commit
that referenced
this pull request
May 13, 2024
serhiy-storchaka
pushed a commit
that referenced
this pull request
May 13, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this pull request
Jul 17, 2024
…nly arguments with **kwargs (pythonGH-103404)
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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 onkwargs.Before
inspect.signature(f).bind(pos_only='val')might either:Now
These are fixed.
Prior related work
#16800