8000 Use `ModuleDocumenter.get_module_members` instead of `sphinx.ext.autodoc.importer.get_module_members` by rayzchen · Pull Request #111 · sphinx-toolbox/sphinx-toolbox · GitHub
[go: up one dir, main page]

Skip to content

Use ModuleDocumenter.get_module_members instead of sphinx.ext.autodoc.importer.get_module_members #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sphinx_toolbox/more_autosummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
special_member_re
)
from sphinx.ext.autodoc.directive import DocumenterBridge, process_documenter_options
from sphinx.ext.autodoc.importer import get_module_members
from sphinx.ext.autosummary import Autosummary, FakeDirective
from sphinx.locale import __
from sphinx.util.inspect import getdoc, safe_getattr
Expand Down Expand Up @@ -552,7 +551,7 @@ def get_object_members(self, want_all: bool) -> Tuple[bool, ObjectMembers]:
else:
# for implicit module members, check __module__ to avoid
# documenting imported objects
return True, get_module_members(self.object)
return True, self.get_module_members(self.object)
else:
memberlist = self.options.members or []
ret = []
Expand Down
0