Fix #1061, #2336, #3235: Now generation of autosummary doesn't contain imported members by default. Thanks to Luc Saffre.

This commit is contained in:
shimizukawa 2016-12-14 00:51:12 +09:00
parent 60ae8437af
commit 938d44e2de
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,9 @@ Release 1.6 (in development)
Incompatible changes
--------------------
* #1061, #2336, #3235: Now generation of autosummary doesn't contain imported
members by default. Thanks to Luc Saffre.
Features added
--------------

View File

@ -176,7 +176,6 @@ def generate_autosummary_docs(sources, output_dir=None, suffix='.rst',
documenter = get_documenter(value, obj)
if documenter.objtype == typ:
if imported or getattr(value, '__module__', None) == obj.__name__:
items.append(name)
public = [x for x in items
if x in include_public or not x.startswith('_')]