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

Add support for __init_subclass in Task metaclass. #3154

Merged
merged 2 commits into from
Apr 28, 2022

Conversation

umartin
Copy link
Contributor

@umartin umartin commented Apr 12, 2022

Description

Since python 3.6 and PEP 487 metaclasses must pass kwargs to super. Otherwise the init_subclass hook fails.

Motivation and Context

For a detailed discussion regarding the same issue in abc see:
https://bugs.python.org/issue29581
And the patch for the issue above:
python/cpython@6fb12b5

Have you tested this? If so, how?

Unit test added

@umartin umartin requested review from dlstadther and a team as code owners April 12, 2022 13:02
@umartin
Copy link
Contributor Author

umartin commented Apr 28, 2022

All checks now pass after master was fixed

Copy link
Collaborator

@dlstadther dlstadther left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@dlstadther dlstadther merged commit 03f3134 into spotify:master Apr 28, 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.

2 participants