René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ff15062d-5d09-af6c-a5d1-8c4a688bbb51
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDA30:FB3A6:EEB7F1:149A9D3:6969F645
html-safe-nonce1b840fb9c48143e9e02e9d730625ca943d8c8ca8bcaf40e85d557582ead0a7b5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTMwOkZCM0E2OkVFQjdGMToxNDlBOUQzOjY5NjlGNjQ1IiwidmlzaXRvcl9pZCI6IjIyMzA3NDg2OTg5NzIzODY4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca5d9e32b28ebf38ed439d925a82e268073d144855a8f3fe503e80f36262f7619
hovercard-subject-tagpull_request:1303667138
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/103289/files
twitter:imagehttps://avatars.githubusercontent.com/u/1324225?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1324225?s=400&v=4
og:image:altFix 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/103289/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103289%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103289%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/103289/files
Reloadhttps://github.com/python/cpython/pull/103289/files
Reloadhttps://github.com/python/cpython/pull/103289/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
hugovk:docs-warnings-argparsehttps://github.com/hugovk/cpython/tree/docs-warnings-argparse
Conversation 35 https://github.com/python/cpython/pull/103289
Commits 7 https://github.com/python/cpython/pull/103289/commits
Checks 0 https://github.com/python/cpython/pull/103289/checks
Files changed https://github.com/python/cpython/pull/103289/files
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
gh-101100: Fix Sphinx warnings in argparse module https://github.com/python/cpython/pull/103289/files#top
Show all changes 7 commits https://github.com/python/cpython/pull/103289/files
29283f3 Fix Sphinx warnings in argparse module hugovk Apr 5, 2023 https://github.com/python/cpython/pull/103289/commits/29283f345b358bc0a21b7ce434c4ddb8d771e20a
c2c2997 Apply suggestions from code review hugovk Apr 7, 2023 https://github.com/python/cpython/pull/103289/commits/c2c299786d9938cfbaa2876cfb1c31483346f235
79665ee Fix ref label and currentmodule positions hugovk Apr 7, 2023 https://github.com/python/cpython/pull/103289/commits/79665ee6aee80c2fd07fe4997a08b3db3bc6bf0d
d474195 Suppress warnings for add_parser hugovk Apr 7, 2023 https://github.com/python/cpython/pull/103289/commits/d474195b4903b57d46e705f75eb400358b3f547b
d6fa955 Trim trailing whitespace hugovk Apr 7, 2023 https://github.com/python/cpython/pull/103289/commits/d6fa9552200354966cde605b821f995e6e38d7a6
328a896 Apply suggestions from code review hugovk Apr 24, 2023 https://github.com/python/cpython/pull/103289/commits/328a896a1693954f0a6cc19a5cd15e22857079b1
4665893 Do not error nit-picky mode builds when _SubParsersAction.add_parser … hugovk Apr 24, 2023 https://github.com/python/cpython/pull/103289/commits/466589361c248031f5a7a29e4cc1dcdf112b385f
Clear filters https://github.com/python/cpython/pull/103289/files
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
conf.py https://github.com/python/cpython/pull/103289/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
argparse.rst https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
argparse.rst https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
optparse.rst https://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
.nitignore https://github.com/python/cpython/pull/103289/files#diff-b7c84835b887ce2fbbbbdbfb8aaee3317c5b731ed4c6c4682e122de334984c9c
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L104
Doc/conf.pyhttps://github.com/python/cpython/pull/103289/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
View file https://github.com/hugovk/cpython/blob/466589361c248031f5a7a29e4cc1dcdf112b385f/Doc/conf.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/103289/{{ revealButtonHref }}
https://github.com/python/cpython/pull/103289/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
https://github.com/python/cpython/pull/103289/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L362
Doc/howto/argparse.rsthttps://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
View file https://github.com/hugovk/cpython/blob/466589361c248031f5a7a29e4cc1dcdf112b385f/Doc/howto/argparse.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/103289/{{ revealButtonHref }}
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/pull/103289/files#diff-614986d008320753f74dc7b8708eeb2bb58503fd6cbac411fe1aa067174baf16
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L362
Doc/library/argparse.rsthttps://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
View file https://github.com/hugovk/cpython/blob/466589361c248031f5a7a29e4cc1dcdf112b385f/Doc/library/argparse.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/103289/{{ revealButtonHref }}
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
https://github.com/python/cpython/pull/103289/files#diff-76a105efd5acb88546c093f1d7f5d22d1d7908060dc46aa3d7c4499142720ec7
Doc/library/optparse.rsthttps://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
View file https://github.com/hugovk/cpython/blob/466589361c248031f5a7a29e4cc1dcdf112b385f/Doc/library/optparse.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/103289/{{ revealButtonHref }}
https://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
https://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
https://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
https://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
https://github.com/python/cpython/pull/103289/files#diff-256f1ce86c435d07bc8e41a7391ff8425b0e64b34d67ac4834e66f04d1812b34
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L107
Doc/tools/.nitignorehttps://github.com/python/cpython/pull/103289/files#diff-b7c84835b887ce2fbbbbdbfb8aaee3317c5b731ed4c6c4682e122de334984c9c
View file https://github.com/hugovk/cpython/blob/466589361c248031f5a7a29e4cc1dcdf112b385f/Doc/tools/.nitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/103289/{{ revealButtonHref }}
https://github.com/python/cpython/pull/103289/files#diff-b7c84835b887ce2fbbbbdbfb8aaee3317c5b731ed4c6c4682e122de334984c9c
https://github.com/python/cpython/pull/103289/files#diff-b7c84835b887ce2fbbbbdbfb8aaee3317c5b731ed4c6c4682e122de334984c9c
Please reload this pagehttps://github.com/python/cpython/pull/103289/files
https://github.com/python/cpython/pull/103289/files#diff-b7c84835b887ce2fbbbbdbfb8aaee3317c5b731ed4c6c4682e122de334984c9c
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.