summaryrefslogtreecommitdiff
path: root/Doc/conf.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-04-24 15:36:32 -0600
committerGitHub <noreply@github.com>2023-04-24 15:36:32 -0600
commit79ae019164eeb6b94118bc17bc1e937405684c75 (patch)
tree853018cd2eb4b41767a381a8130e0699b88b2d1c /Doc/conf.py
parent1c01f8d79760ca74f6d35b839d23ac408b3bb44e (diff)
downloadcpython-git-79ae019164eeb6b94118bc17bc1e937405684c75.tar.gz
gh-101100: Fix Sphinx warnings in `argparse` module (#103289)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Doc/conf.py')
-rw-r--r--Doc/conf.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 4c120bee64..42c23bf77c 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -76,6 +76,13 @@ venvdir = os.getenv('VENVDIR')
if venvdir is not None:
exclude_patterns.append(venvdir + '/*')
+nitpick_ignore = [
+ # Do not error nit-picky mode builds when _SubParsersAction.add_parser cannot
+ # be resolved, as the method is currently undocumented. For context, see
+ # https://github.com/python/cpython/pull/103289.
+ ('py:meth', '_SubParsersAction.add_parser'),
+]
+
# Disable Docutils smartquotes for several translations
smartquotes_excludes = {
'languages': ['ja', 'fr', 'zh_TW', 'zh_CN'], 'builders': ['man', 'text'],