-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
gh-64490: Tweak AC implementation for **kwds
#139133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Deferring to Serhiy, as this is addressing his review remarks. |
""" | ||
self.expect_failure(block, err, lineno=6) | ||
|
||
def test_double_star_after_var_keyword(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be renamed.
There was a problem hiding this comment.
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?
""", """ | ||
with_kwds | ||
[ | ||
**kwds: dict | ||
] |
There was a problem hiding this comment.
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.
Addresses @serhiy-storchaka's comments following initial merge (thank you Serhiy for the reviews!).
A