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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4562b8b1-6bde-7d0d-01c5-f605c402339d |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | EC0C:3B18F:11D8539:1899A79:6969F7E4 |
| html-safe-nonce | 61f4e1fcdf463424d5073c6b6826d83bc681a4cec954fb71d99aa5ddf5b2daa7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzBDOjNCMThGOjExRDg1Mzk6MTg5OUE3OTo2OTY5RjdFNCIsInZpc2l0b3JfaWQiOiI4MzQxMzAzNjg3MjM2OTQxNzk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1ea49598cfe571a4ff34ae372ab125ec813d0917f20a5d2d1022bd9e6f3a12c9 |
| hovercard-subject-tag | pull_request:1303667138 |
| 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/103289/checks |
| 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 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width