From 7f0166780ff61826a2965f7f78b645a661ad6dd7 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Tue, 11 Jan 2022 02:18:29 +0900 Subject: [PATCH] Fix #10058: autosummary: Imported members are not shown Originally, the `check_module()` call was added at 21b8384 to hide imported members on generating stubs. But it was incorrect approach. Therefore it was disabled by b433197 and fixed the original issue by another approach at 2390c554. Finally, the `check_module()` call becomes meaningless code. But, at present, it causes that imported members are not shown when `autodoc_class_signature` is 'separated'. To resolve the problem, this removes the meaningless call. --- CHANGES | 2 ++ sphinx/ext/autosummary/__init__.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 6ce3e51f3d..96637d00ec 100644 --- a/CHANGES +++ b/CHANGES @@ -54,6 +54,8 @@ Bugs fixed position-only-arguments * #9194: autodoc: types under the "typing" module are not hyperlinked * #10009: autodoc: Crashes if target object raises an error on getting docstring +* #10058: autosummary: Imported members are not shown when + ``autodoc_class_signature = 'separated'`` * #9947: i18n: topic directive having a bullet list can't be translatable * #9878: mathjax: MathJax configuration is placed after loading MathJax itself * #9857: Generated RFC links use outdated base url diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index 36dc230193..7b132c83b2 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -372,8 +372,6 @@ def get_items(self, names: List[str]) -> List[Tuple[str, str, str, str]]: location=self.get_location()) items.append((display_name, '', '', real_name)) continue - if documenter.options.members and not documenter.check_module(): - continue # try to also get a source code analyzer for attribute docs try: