Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-103479: [Enum] require __new__ to be considered a data type#103495
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
or be a dataclass
Thanks@ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry,@ethanfurman, I could not cleanly backport this to |
bedevere-bot commentedApr 13, 2023
GH-103514 is a backport of this pull request to the3.11 branch. |
…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 commita6f9594) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* main:pythongh-103479: [Enum] require __new__ to be considered a data type (pythonGH-103495)pythongh-103365: [Enum] STRICT boundary corrections (pythonGH-103494)pythonGH-103488: Use return-offset, not yield-offset. (pythonGH-103502)pythongh-103088: Fix test_venv error message to avoid bytes/str warning (pythonGH-103500)pythonGH-103082: Turn on branch events for FOR_ITER instructions. (python#103507)pythongh-102978: Fix mock.patch function signatures for class and staticmethod decorators (python#103228)pythongh-103462: Ensure SelectorSocketTransport.writelines registers a writer when data is still pending (python#103463)pythongh-95299: Rework test_cppext.py to not invoke setup.py directly (python#103316)
…GH-103495) (GH-103514)a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type; an __init__ method is not enough (restores pre-3.11 behavior for non-dataclasses).(cherry picked from commita6f9594)Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Uh oh!
There was an error while loading.Please reload this page.
or be a dataclass
Enum
class as of 3.11 #103479