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

[Enum] _simple_enum does not handle complex aliases #117663

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

[Enum] _simple_enum does not handle complex aliases #117663

ethanfurman opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
3.13 new features, 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

@ethanfurman ethanfurman added type-bug An unexpected behavior, bug, or error 3.13 new features, bugs and security fixes labels Apr 9, 2024
@ethanfurman ethanfurman self-assigned this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 new features, bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant