diff --git a/numpydoc/docscrape_sphinx.py b/numpydoc/docscrape_sphinx.py index 482978c3..6b7d7c3e 100644 --- a/numpydoc/docscrape_sphinx.py +++ b/numpydoc/docscrape_sphinx.py @@ -126,6 +126,9 @@ def _str_member_list(self, name): others.append((param, param_type, desc)) if autosum: + out += ['.. currentmodule:: ' + + self._obj.__module__ + '.' + self._obj.__name__] + out += [] out += ['.. autosummary::'] if self.class_members_toctree: out += [' :toctree:']