Title: [3.11] gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457) by miss-islington · Pull Request #94156 · python/cpython · GitHub
Open Graph Title: [3.11] gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457) by miss-islington · Pull Request #94156 · python/cpython
X Title: [3.11] gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457) by miss-islington · Pull Request #94156 · python/cpython
Description: When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value. Co-authored-by: Ethan Furman ethan@stoneleaf.us (cherry picked from commit fb1e950) Co-authored-by: Oscar R 89599049+oscar-LT@users.noreply.github.com Issue: gh-91456
Open Graph Description: When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will requir...
X Description: When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will requir...
Opengraph URL: https://github.com/python/cpython/pull/94156
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:2b6eb760-b619-4d49-2079-e095506dce36 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B0BE:30B448:286FB0:3855F6:696A1D22 |
| html-safe-nonce | bf30bb1817223256d8054f5a337274644eeb1c18e8bba2cf5f77bbbd99b14bf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEJFOjMwQjQ0ODoyODZGQjA6Mzg1NUY2OjY5NkExRDIyIiwidmlzaXRvcl9pZCI6IjQ1MjY2NTYyNTA1MzQ1NjcyMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 117b22f1fcbddeaf5f2b0b1cdf0b08ac6537b1b5aaaaa4ed8e4f3a3f940d4039 |
| hovercard-subject-tag | pull_request:976678974 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/94156/checks |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will requir... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d515f6f09fa57a93bf90355cb894eb84ca4f458f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width