FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-103479: [Enum] require __new__ to be considered a data type (GH-103495) by ethanfurman · Pull Request #103514 · python/cpython · GitHub

/ cpython Public

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

Merged
ethanfurman merged 4 commits into
python:3.11from
ethanfurman:backport-a6f9594-3.11
Apr 13, 2023
Merged

[3.11] gh-103479: [Enum] require __new__ to be considered a data type (GH-103495)#103514
ethanfurman merged 4 commits into
python:3.11from
ethanfurman:backport-a6f9594-3.11

Conversation

ethanfurman commented Apr 13, 2023
edited
Loading

Copy link
Copy Markdown
Member

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 merged commit 3b929a7 into python:3.11 Apr 13, 2023
ethanfurman deleted the backport-a6f9594-3.11 branch April 13, 2023 19:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL