Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 610bb35

Browse files
committed
fix for skip bug
1 parent 8be51e3 commit 610bb35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinx_automodapi/automodapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,12 @@ def _mod_info(modname, toskip=[], include=[], onlylocals=True):
411411

412412
hascls = hasfunc = hasother = False
413413

414-
skips = []
414+
skips = toskip.copy()
415415
for localnm, fqnm, obj in zip(*find_mod_objs(modname, onlylocals=onlylocals)):
416-
if localnm in toskip or (include and localnm not in include):
416+
if include and localnm not in include and localnm not in skips:
417417
skips.append(localnm)
418418

419-
else:
419+
elif localnm not in toskip:
420420
hascls = hascls or inspect.isclass(obj)
421421
hasfunc = hasfunc or inspect.isroutine(obj)
422422
hasother = hasother or (not inspect.isclass(obj) and

0 commit comments

Comments
 (0)