8000 [Enum] _simple_enum does not handle complex aliases · Issue #117663 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[Enum] _simple_enum does not handle complex aliases #117663

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

Closed
ethanfurman opened this issue Apr 9, 2024 · 0 comments
Closed

[Enum] _simple_enum does not handle complex aliases #117663

ethanfurman opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error

Comments

@ethanfurman
Copy link
Member
ethanfurman commented Apr 9, 2024

Bug report

Bug description:

If an enum's __new__ takes multiple arguments, and only one of those arguments is the member value, _simple_enum fails (it treats all the arguments as a single tuple value).

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant
0