Skip to content

[3.11] gh-100098: [Enum] insist on actual tuples, no subclasses, for auto (GH-100099) #100102

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

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 8, 2022

When checking for auto() instances, only top-level usage is supported,
which means either alone or as part of a regular tuple. Other
containers, such as lists, dicts, or namedtuples, will not have auto()
transformed into a value.
(cherry picked from commit ded02ca)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

…uto (pythonGH-100099)

When checking for auto() instances, only top-level usage is supported,
which means either alone or as part of a regular tuple. Other
containers, such as lists, dicts, or namedtuples, will not have auto()
transformed into a value.
(cherry picked from commit ded02ca)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: 6 of 9 required status checks are expected..

@miss-islington miss-islington merged commit d4426c8 into python:3.11 Dec 8, 2022
@miss-islington miss-islington deleted the backport-ded02ca-3.11 branch December 8, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants