Skip to content

Commit

Permalink
improve import
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <[email protected]>
  • Loading branch information
nstarman committed Jan 16, 2024
1 parent 6ffd38a commit 8705d7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sphinx_automodapi/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import inspect
import sys
import re
import os
from inspect import ismodule
from warnings import warn

from sphinx.ext.autosummary.generate import find_autosummary_in_docstring
Expand Down Expand Up @@ -86,7 +86,6 @@ def find_mod_objs(modname, onlylocals=False, sort=False):
pkgitems = [(k, getattr(mod, k)) for k in dir(mod) if k[0] != "_"]

# filter out modules and pull the names and objs out
ismodule = inspect.ismodule
localnames = [k for k, v in pkgitems if not ismodule(v)]
objs = [v for k, v in pkgitems if not ismodule(v)]

Expand Down

0 comments on commit 8705d7a

Please sign in to comment.