diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index 4fd44ac67..a53b125d5 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -276,7 +276,7 @@ class Autosummary(Directive): self.warn('failed to import object %s' % real_name) items.append((display_name, '', '', real_name)) continue - if not documenter.check_module(): + if documenter.options.members and not documenter.check_module(): continue # try to also get a source code analyzer for attribute docs