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

[3.11] gh-103479: [Enum] require __new__ to be considered a data type (GH-103495) #103514

Merged
merged 4 commits into from
Apr 13, 2023

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Apr 13, 2023

a mixin must have a new method to be interpreted as a data-type, an init method is not enough (restores pre-3.11 behavior)

(cherry picked from commit a6f9594)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

…ta type (pythonGH-103495)

a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type.
                    (cherry picked from commit a6f9594)

                    Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@ethanfurman ethanfurman merged commit 3b929a7 into python:3.11 Apr 13, 2023
@ethanfurman ethanfurman deleted the backport-a6f9594-3.11 branch April 13, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants