Title: gh-94590: add signatures to operator itemgetter, attrgetter, methodcaller by eriknw · Pull Request #94591 · python/cpython · GitHub
Open Graph Title: gh-94590: add signatures to operator itemgetter, attrgetter, methodcaller by eriknw · Pull Request #94591 · python/cpython
X Title: gh-94590: add signatures to operator itemgetter, attrgetter, methodcaller by eriknw · Pull Request #94591 · python/cpython
Description: Closes #94590 These functions were intentionally skipped when operator was updated to use the argument clinic: #64385 (comment) However, by not using the argument clinic, they missed out on getting signatures. This is a narrow PR to update the docstrings so that __text_signature__ can be extracted from them. Updating to use the argument clinic is beyond scope. methodcaller uses *args, **kwargs to match variadic names used elsewhere (e.g., operator.call uses *args, **kwargs). These changes are pretty minimal. Should I add tests (if so, where?) or a blurb? Issue: gh-94590
Open Graph Description: Closes #94590 These functions were intentionally skipped when operator was updated to use the argument clinic: #64385 (comment) However, by not using the argument clinic, they missed out on getting...
X Description: Closes #94590 These functions were intentionally skipped when operator was updated to use the argument clinic: #64385 (comment) However, by not using the argument clinic, they missed out on getting...
Opengraph URL: https://github.com/python/cpython/pull/94591
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cf9c2fab-6095-c983-d30a-c8e333839299 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8896:1CEAED:BADB09:FB6BD9:696ABED0 |
| html-safe-nonce | f7a0de24e9c784abcfa4839e3fc9676d970caf9c2fdf6df51b14913a2e5ff309 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODk2OjFDRUFFRDpCQURCMDk6RkI2QkQ5OjY5NkFCRUQwIiwidmlzaXRvcl9pZCI6IjI3NjY1MTgzMDgzNDMyOTk3OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 446c1e34991ed6940d8dece79b9570b4d5978d93266811349834c1a40aa01cca |
| hovercard-subject-tag | pull_request:988189145 |
| 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/94591/files |
| twitter:image | https://avatars.githubusercontent.com/u/2058401?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2058401?s=400&v=4 |
| og:image:alt | Closes #94590 These functions were intentionally skipped when operator was updated to use the argument clinic: #64385 (comment) However, by not using the argument clinic, they missed out on getting... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width