-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
gh-104984: remove kwargs and starargs from Call & ClassDef #104986
Conversation
These fields are removed in python@025e9eb
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.
Thanks for the PR! I verified that these arguments (and attributes) indeed don't exist anymore. Impressive that nobody noticed this until now in the 8(!) years since they were removed.
@@ -1820,7 +1820,7 @@ Function and class definitions | |||
type_ignores=[]) | |||
|
|||
|
|||
.. class:: ClassDef(name, bases, keywords, starargs, kwargs, body, decorator_list) | |||
.. class:: ClassDef(name, bases, keywords, body, decorator_list) |
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.
This is also now out of date with the implementation in main and 3.12 due to the addition of type_params
argument in PEP 695, but that's being addressed in #104642
Still seems sensible to remove starargs
and kwargs
in this PR, and let @JelleZijlstra resolve the resulting conflict on this line in #104642
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.
Hmm, backporting this will mean that the PEP 695 docs PR won't backport cleanly, which may cause a bit more of a pain. @JelleZijlstra how do you prefer to handle this?
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.
Just merge this first, I'll take care of the backports
…honGH-104986) These fields are removed in python@025e9eb (cherry picked from commit 61c1d67) Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
GH-104987 is a backport of this pull request to the 3.12 branch. |
GH-104988 is a backport of this pull request to the 3.11 branch. |
…honGH-104986) These fields are removed in python@025e9eb (cherry picked from commit 61c1d67) Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
These fields were removed in 025e9eb
Resolves: #104984
📚 Documentation preview 📚: https://cpython-previews--104986.org.readthedocs.build/