From ab6ec71a8913f2ed83d5bccbb7d5676016e7b3a2 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 9 May 2021 22:05:17 +0900 Subject: [PATCH] Fix #9188: autosummary: warning if list is set to autosummary_generate --- CHANGES | 3 +++ sphinx/ext/autosummary/__init__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8458f30efa7..f4c69843266 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,9 @@ Features added Bugs fixed ---------- +* #9188: autosummary: warning is emitted if list value is set to + autosummary_generate + Testing -------- diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index c29714ad4c8..cacff8c5c20 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -773,7 +773,7 @@ def setup(app: Sphinx) -> Dict[str, Any]: app.connect('builder-inited', process_generate_options) app.add_config_value('autosummary_context', {}, True) app.add_config_value('autosummary_filename_map', {}, 'html') - app.add_config_value('autosummary_generate', True, True, [bool]) + app.add_config_value('autosummary_generate', True, True, [bool, list]) app.add_config_value('autosummary_generate_overwrite', True, False) app.add_config_value('autosummary_mock_imports', lambda config: config.autodoc_mock_imports, 'env')