From 79ae019164eeb6b94118bc17bc1e937405684c75 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 24 Apr 2023 15:36:32 -0600 Subject: gh-101100: Fix Sphinx warnings in `argparse` module (#103289) Co-authored-by: C.A.M. Gerlach Co-authored-by: Ezio Melotti --- Doc/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc/conf.py') 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'], -- cgit v1.2.1