diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index 4fd44ac67b4..a53b125d576 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -276,7 +276,7 @@ def get_items(self, names): 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