Skip to content

Commit

Permalink
Fix #10058: autosummary: Imported members are not shown
Browse files Browse the repository at this point in the history
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 2390c55.

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.
  • Loading branch information
tk0miya committed Jan 10, 2022
1 parent 87eda92 commit 7f01667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions sphinx/ext/autosummary/__init__.py
Expand Up @@ -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:
Expand Down

0 comments on commit 7f01667

Please sign in to comment.