Skip to content

Commit 50651c6

Browse files
committed
Added ..currentmodule:: before ..autosummary::
1 parent 4c7909c commit 50651c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numpydoc/docscrape_sphinx.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def _str_member_list(self, name):
126126
others.append((param, param_type, desc))
127127

128128
if autosum:
129+
out += ['.. currentmodule:: '
130+
+ self._obj.__module__ + '.' + self._obj.__name__]
131+
out += []
129132
out += ['.. autosummary::']
130133
if self.class_members_toctree:
131134
out += [' :toctree:']

0 commit comments

Comments
 (0)