Title: bpo-45535: Improve output of Enum ``dir()`` by AlexWaygood · Pull Request #29316 · python/cpython · GitHub
Open Graph Title: bpo-45535: Improve output of Enum ``dir()`` by AlexWaygood · Pull Request #29316 · python/cpython
X Title: bpo-45535: Improve output of Enum ``dir()`` by AlexWaygood · Pull Request #29316 · python/cpython
Description: This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also makes it easier for IDEs to provide auto-completion. Apologies for the big diff on the tests. https://bugs.python.org/issue45535
Open Graph Description: This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make...
X Description: This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make...
Opengraph URL: https://github.com/python/cpython/pull/29316
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0815b9ce-0b17-c3af-66b6-3e268833a6e7 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9B70:385F9F:FE7654:15F8924:696A95D2 |
| html-safe-nonce | ef850995058b447d1e3431e714ce9f60c39284a020fb7742be589d7c19129e12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjcwOjM4NUY5RjpGRTc2NTQ6MTVGODkyNDo2OTZBOTVEMiIsInZpc2l0b3JfaWQiOiI5MDE5MjQ2NTAyMzM1OTExMzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 78045f5e5bab93710e33b3f53b1f1d4d0f6660e8fc01b78dc829160b2b4099b7 |
| hovercard-subject-tag | pull_request:769348432 |
| 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/29316/checks |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| 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 | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width