File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,9 @@ def _fetch_members(el: Auto, obj: dc.Object | dc.Alias):
270
270
if not el .include_private :
271
271
options = {k : v for k , v in options .items () if not k .startswith ("_" )}
272
272
273
+ if not el .include_imports :
274
+ options = {k : v for k , v in options .items () if not v .is_alias }
275
+
273
276
# for modules, remove any Alias objects, since they were imported from
274
277
# other places. Sphinx has a flag for this behavior, so may be good
275
278
# to do something similar.
Original file line number Diff line number Diff line change @@ -196,6 +196,8 @@ class Auto(_Base):
196
196
A list of members, such as attributes or methods on a class, to document.
197
197
include_private:
198
198
Whether to include members starting with "_"
199
+ include_imports:
200
+ Whether to include members that were imported from somewhere else.
199
201
include:
200
202
(Not implemented). A list of members to include.
201
203
exclude:
@@ -216,6 +218,7 @@ class Auto(_Base):
216
218
name : str
217
219
members : Optional [list [str ]] = None
218
220
include_private : bool = False
221
+ include_imports : bool = False
219
222
include : Optional [str ] = None
220
223
exclude : Optional [str ] = None
221
224
dynamic : Union [None , bool , str ] = None
You can’t perform that action at this time.
0 commit comments