gh-91456: Fix issue affecting the use of auto() alongside aliases in Enums by oscar-LT · Pull Request #91457 · python/cpython · GitHub

github.com

Tin mới

oscar-LT:fix-issue-91456

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Enum auto() functionally fails following alias creation #91456

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

awaiting change review

awaiting change review

Fix issue affecting the use of auto() alongside aliases in Enums

Improve Fix and add test case as requested

Check Incrementable instead of type checking

Update function doc_string for last_values arg

Improve time complexity by using filter()

Forgot to specify exception type (TypeError)

deprecate current behavior

View reviewed changes

needs backport to 3.11

needs backport to 3.11

: [Enum] Deprecate default auto() behavior with mixed v…

: [Enum] Deprecate default auto() behavior with mixed value t…

Revert 30935 defer bpo45162 to 312 (

emscripten-core/emscripten#17269

https://github.com/python/cpython/issue/89336

@unique errors naringas/craftinginterpreters-plox#1

[3.12] gh-104271: Fix auto() fallback in case of mixed type Enum #104279

Enum works in python 3.10 breaks in 3.11 #104271