Title: gh-101100: Fix Sphinx warnings in `argparse` module by hugovk · Pull Request #103289 · python/cpython · GitHub
Open Graph Title: gh-101100: Fix Sphinx warnings in `argparse` module by hugovk · Pull Request #103289 · python/cpython
X Title: gh-101100: Fix Sphinx warnings in `argparse` module by hugovk · Pull Request #103289 · python/cpython
Description: Fix Sphinx warnings in the argparse tutorial and library reference, plus add some missing bits to optparse that are referred to from argparse. Before ❯ touch ./Doc/howto/argparse.rst ./Doc/library/argparse.rst; make -C Doc html SPHINXERRORHANDLING=-n 2>&1 | grep "argparse.*WARNING" | tee >(wc -l) Doc/howto/argparse.rst:14: WARNING: c:func reference target not found: getopt Doc/howto/argparse.rst:140: WARNING: py:meth reference target not found: add_argument Doc/howto/argparse.rst:146: WARNING: py:meth reference target not found: parse_args Doc/howto/argparse.rst:257: WARNING: py:attr reference target not found: args.verbosity Doc/howto/argparse.rst:298: WARNING: py:data reference target not found: args.verbose Doc/howto/argparse.rst:672: WARNING: py:meth reference target not found: ArgumentParser.parse_args Doc/howto/argparse.rst:699: WARNING: py:meth reference target not found: add_mutually_exclusive_group Doc/library/argparse.rst:587: WARNING: py:func reference target not found: locale.getpreferredencoding(False) Doc/library/argparse.rst:1149: WARNING: py:exc reference target not found: ArgumentTypeError Doc/library/argparse.rst:1191: WARNING: py:exc reference target not found: FileNotFound Doc/library/argparse.rst:1445: WARNING: py:meth reference target not found: add_argument Doc/library/argparse.rst:1718: WARNING: py:meth reference target not found: ArgumentParser.add_parser Doc/library/argparse.rst:1788: WARNING: py:meth reference target not found: add_parser Doc/library/argparse.rst:2159: WARNING: py:meth reference target not found: parse_known_args Doc/library/argparse.rst:2288: WARNING: py:class reference target not found: optparse.Values Doc/library/argparse.rst:2288: WARNING: py:exc reference target not found: optparse.OptionError Doc/library/argparse.rst:2288: WARNING: py:exc reference target not found: optparse.OptionValueError Doc/library/argparse.rst:2288: WARNING: py:exc reference target not found: ArgumentError 18 After I'm not sure how to fix these: Doc/library/argparse.rst:1718: WARNING: py:meth reference target not found: ArgumentParser.add_parser Doc/library/argparse.rst:1788: WARNING: py:meth reference target not found: add_parser add_parser is a method of the _SubParsersAction class. Any ideas? Use the ! to silence them? cpython/Lib/argparse.py Line 1184 in de18267 def add_parser(self, name, **kwargs): Issue: gh-101100
Open Graph Description: Fix Sphinx warnings in the argparse tutorial and library reference, plus add some missing bits to optparse that are referred to from argparse. Before ❯ touch ./Doc/howto/argparse.rst ./Doc/library/...
X Description: Fix Sphinx warnings in the argparse tutorial and library reference, plus add some missing bits to optparse that are referred to from argparse. Before ❯ touch ./Doc/howto/argparse.rst ./Doc/library/...
Opengraph URL: https://github.com/python/cpython/pull/103289
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ff15062d-5d09-af6c-a5d1-8c4a688bbb51 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DA30:FB3A6:EEB7F1:149A9D3:6969F645 |
| html-safe-nonce | 1b840fb9c48143e9e02e9d730625ca943d8c8ca8bcaf40e85d557582ead0a7b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTMwOkZCM0E2OkVFQjdGMToxNDlBOUQzOjY5NjlGNjQ1IiwidmlzaXRvcl9pZCI6IjIyMzA3NDg2OTg5NzIzODY4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a5d9e32b28ebf38ed439d925a82e268073d144855a8f3fe503e80f36262f7619 |
| hovercard-subject-tag | pull_request:1303667138 |
| 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/103289/files |
| twitter:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| og:image:alt | Fix Sphinx warnings in the argparse tutorial and library reference, plus add some missing bits to optparse that are referred to from argparse. Before ❯ touch ./Doc/howto/argparse.rst ./Doc/library/... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width