Skip to content

gh-64490: Tweak AC implementation for **kwds#139133

Open
AA-Turner wants to merge 2 commits intopython:mainfrom
AA-Turner:clinic/kwargs-simple-followup
Open

gh-64490: Tweak AC implementation for **kwds#139133
AA-Turner wants to merge 2 commits intopython:mainfrom
AA-Turner:clinic/kwargs-simple-followup

Conversation

@AA-Turner
Copy link
Copy Markdown
Member

@AA-Turner AA-Turner commented Sep 18, 2025

Addresses @serhiy-storchaka's comments following initial merge (thank you Serhiy for the reviews!).

A

@erlend-aasland
Copy link
Copy Markdown
Contributor

Deferring to Serhiy, as this is addressing his review remarks.

Comment thread Lib/test/test_clinic.py
@@ -358,27 +358,13 @@ def test_vararg_after_star(self):
self.expect_failure(block, err, lineno=6)

def test_double_star_after_var_keyword(self):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be renamed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And, is there a test for a single ** without name?

Comment thread Lib/test/test_clinic.py
Comment on lines -1647 to -1651
""", """
with_kwds
[
**kwds: dict
]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add also a test for var-positional?

            with_varpos
                [
                *args: tuple
                ]

If it is an error and has not yet been tested.

If it is an error, and the error message is the same as for keyword arguments here, then it would be reasonable to make the error message for var-keyword the same. Otherwise we can leave a discrepancy.

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review skip news stale Stale PR or inactive for long period of time. topic-argument-clinic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants