Title: bpo-26510: Allow argparse add_subparsers to take `required` kwarg. by asottile · Pull Request #3027 · python/cpython · GitHub
Open Graph Title: bpo-26510: Allow argparse add_subparsers to take `required` kwarg. by asottile · Pull Request #3027 · python/cpython
X Title: bpo-26510: Allow argparse add_subparsers to take `required` kwarg. by asottile · Pull Request #3027 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: I added both a test to demonstrate the current behaviour / workaround as well as the new behaviour. I'm torn between setting the default required=True (which was the python2 behaviour) and sett...
X Description: I added both a test to demonstrate the current behaviour / workaround as well as the new behaviour. I'm torn between setting the default required=True (which was the python2 behaviour) and ...
Opengraph URL: https://github.com/python/cpython/pull/3027
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:2996e2ca-eea9-c1c4-3e7f-43a1a7ea9f29 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D03A:1EE5:2E2F69F:41154C7:6A500030 |
| html-safe-nonce | f8fb169138390bfd637a97bd83ffa594e1f0b5579da31f151cdde0e1d79111bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDNBOjFFRTU6MkUyRjY5Rjo0MTE1NEM3OjZBNTAwMDMwIiwidmlzaXRvcl9pZCI6IjkwMTE5NTUwMDkzODY5NzExODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1294d76900d6fd99180ee09731b7d1b5f76f249e467a9d25cd6d9178ab66121c |
| hovercard-subject-tag | pull_request:134722393 |
| 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/3027/commits |
| twitter:image | https://opengraph.githubassets.com/775e95a15d808149892293dc1a86c8a4fcac884a83e28b3f053903e982c6b897/python/cpython/pull/3027 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/775e95a15d808149892293dc1a86c8a4fcac884a83e28b3f053903e982c6b897/python/cpython/pull/3027 |
| og:image:alt | I added both a test to demonstrate the current behaviour / workaround as well as the new behaviour. I'm torn between setting the default required=True (which was the python2 behaviour) and sett... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asottile |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94 |
| turbo-cache-control | no-cache |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e155b8a71f9284454f73118dfe5e634e74f7afb3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width