summaryrefslogtreecommitdiffstats
path: root/Doc/conf.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-04-24 22:15:04 (GMT)
committerGitHub <noreply@github.com>2023-04-24 22:15:04 (GMT)
commit9f4364355eb9a03e8d7b7368be92eb227b8d46b2 (patch)
tree841577a843e0284cd39b44d20dd07b7b8ec469f7 /Doc/conf.py
parent6f92d3f01abd000eb67f21fedea26132d40ddef9 (diff)
downloadcpython-9f4364355eb9a03e8d7b7368be92eb227b8d46b2.zip
cpython-9f4364355eb9a03e8d7b7368be92eb227b8d46b2.tar.gz
cpython-9f4364355eb9a03e8d7b7368be92eb227b8d46b2.tar.bz2
[3.11] gh-101100: Fix Sphinx warnings in `argparse` module (#103289) (#103803)
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 851b473..216f12d 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -71,6 +71,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'],