Skip to content

Conversation

@ethanfurman
Copy link
Member

@ethanfurmanethanfurman 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>
@ethanfurmanethanfurman merged commit 3b929a7 into python:3.11Apr 13, 2023
@ethanfurmanethanfurman deleted the backport-a6f9594-3.11 branch April 13, 2023 19:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ethanfurman@bedevere-bot