summaryrefslogtreecommitdiffstats
path: root/Doc/conf.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-04-24 21:36:32 (GMT)
committerGitHub <noreply@github.com>2023-04-24 21:36:32 (GMT)
commit79ae019164eeb6b94118bc17bc1e937405684c75 (patch)
tree853018cd2eb4b41767a381a8130e0699b88b2d1c /Doc/conf.py
parent1c01f8d79760ca74f6d35b839d23ac408b3bb44e (diff)
downloadcpython-79ae019164eeb6b94118bc17bc1e937405684c75.zip
cpython-79ae019164eeb6b94118bc17bc1e937405684c75.tar.gz
cpython-79ae019164eeb6b94118bc17bc1e937405684c75.tar.bz2
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 4c120be..42c23bf 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'],