Skip to content

Commit 4261ebb

Browse files
authored
Merge pull request #81 from SirNO/master
Added ..currentmodule:: before ..autosummary::
2 parents 18df9d1 + 50651c6 commit 4261ebb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numpydoc/docscrape_sphinx.py

+3
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ def _str_member_list(self, name):
137137
others.append((param, param_type, desc))
138138

139139
if autosum:
140+
out += ['.. currentmodule:: '
141+
+ self._obj.__module__ + '.' + self._obj.__name__]
142+
out += []
140143
out += ['.. autosummary::']
141144
if self.class_members_toctree:
142145
out += [' :toctree:']

0 commit comments

Comments
 (0)