Skip to content
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

bpo-43827: Fixed abc conflicts with __init_subclass__ #25385

Merged
merged 1 commit into from
May 5, 2022

Conversation

vladhoi
Copy link
Contributor

@vladhoi vladhoi commented Apr 13, 2021

Copy link
Contributor

@ypankovych ypankovych left a comment

Choose a reason for hiding this comment

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

LGTM

@vladhoi
Copy link
Contributor Author

vladhoi commented May 4, 2021

Hi @serhiy-storchaka
I see that you committed to abc module, could you please review this pr? 🙂

Copy link
Member

@pganssle pganssle left a comment

Choose a reason for hiding this comment

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

This seems in line with what @serhiy-storchaka was trying to do in GH-13700, though I'm not confident that we can consider this to be a backwards-compatible change. Even though _py_abc has had this same signature for a while, I think most people get this version, not the other one, so it's possible this will break someone passing one of these by keyword. If we're going to change it, it should probably be 3.11+ and not backported.

Also, this needs at least one test. Presumably the MWE detailed in the BPO issue can be refactored into a test.

@@ -0,0 +1 @@
Fix abc.ABCMeta conflicts with __init_subclass__
Copy link
Member

Choose a reason for hiding this comment

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

This is not really enough context for someone to understand what is changing just from reading the changelog. Something more like this would be better:

"All positional-or-keyword parameters to ABCMeta.__new__ are now positional-only to avoid conflicts with keyword arguments to be passed to __init_subclass__."

I am not super confident that that's the only thing that ABCMeta's **kwargs is used for, so if it's used for other stuff, more general wording would be appropriate.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@vladhoi
Copy link
Contributor Author

vladhoi commented Jun 5, 2021

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@pganssle: please review the changes made to this pull request.

@ypankovych
Copy link
Contributor

@pganssle can you take a look, please?

@ypankovych
Copy link
Contributor

@pganssle are you there?

@vladhoi
Copy link
Contributor Author

vladhoi commented Nov 21, 2021

Hi @pganssle
Could you please re-review when you have a chance?

@JelleZijlstra JelleZijlstra self-requested a review May 3, 2022 23:58
@cpython-cla-bot
Copy link

cpython-cla-bot bot commented May 4, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks, looks good! Unfortunately you'll have to re-sign the CLA under the new (much simpler) process.

@JelleZijlstra
Copy link
Member

Thanks for your changes! We still need the CLA to be signed.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM.

@vladhoi
Copy link
Contributor Author

vladhoi commented May 4, 2022

Hi @JelleZijlstra @serhiy-storchaka

Thanks for the review.
Unfortunately, I am not able to sign the cla, because the email provided by the bot is not correct and I don't have access to it. I tried to commit from the correct account, but it didn't help. Can I somehow resolve this issue and sign cla manually?

Thanks for your changes! We still need the CLA to be signed.

@JelleZijlstra
Copy link
Member

I'd recommend you set your local git config to the right email address, then squash the commits on this branch and force-push the new commit.

@vladhoi
Copy link
Contributor Author

vladhoi commented May 4, 2022

@JelleZijlstra looks like it didn't help. Should close this pr and create a new one and ping you there?

@JelleZijlstra
Copy link
Member

Sure, that's worth trying.

@vladhoi
Copy link
Contributor Author

vladhoi commented May 5, 2022

Hi @JelleZijlstra
I fixed the issue with the cla, it is now signed.
The pr is ready to be merged.
Thanks

@JelleZijlstra JelleZijlstra merged commit 42fee93 into python:main May 5, 2022
@vladhoi vladhoi mannequin mentioned this pull request May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants