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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:91f5d15e-a240-d60b-2755-9fddd87641da |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A664:87739:1BD6AA:2758E9:696A0F65 |
| html-safe-nonce | a061ff4d6250d9b43ef4a8f5ffe1e1ccc4087a50c16844cb49429fb86f85f80e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjY0Ojg3NzM5OjFCRDZBQToyNzU4RTk6Njk2QTBGNjUiLCJ2aXNpdG9yX2lkIjoiMTEyOTU0NzQ3NDAxMTgxOTg3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7b90448bcbd4fd775ff1be19f3ff1b1d47f189c223933d49665b0d51549915bb |
| hovercard-subject-tag | pull_request:976678974 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width