Skip to content

Commit

Permalink
fix for skip bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Dec 28, 2021
1 parent 8be51e3 commit 610bb35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx_automodapi/automodapi.py
Expand Up @@ -411,12 +411,12 @@ def _mod_info(modname, toskip=[], include=[], onlylocals=True):

hascls = hasfunc = hasother = False

skips = []
skips = toskip.copy()
for localnm, fqnm, obj in zip(*find_mod_objs(modname, onlylocals=onlylocals)):
if localnm in toskip or (include and localnm not in include):
if include and localnm not in include and localnm not in skips:
skips.append(localnm)

else:
elif localnm not in toskip:
hascls = hascls or inspect.isclass(obj)
hasfunc = hasfunc or inspect.isroutine(obj)
hasother = hasother or (not inspect.isclass(obj) and
Expand Down

0 comments on commit 610bb35

Please sign in to comment.