mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
autosummary: global variables having doc-comment are considered as non-imported members of the module
This commit is contained in:
@@ -168,10 +168,12 @@ class ModuleScanner:
|
||||
continue
|
||||
|
||||
try:
|
||||
if inspect.ismodule(value):
|
||||
if ('', name) in attr_docs:
|
||||
imported = False
|
||||
elif inspect.ismodule(value):
|
||||
imported = True
|
||||
elif safe_getattr(value, '__module__') != self.object.__name__:
|
||||
imported = objtype != 'data' or ('', name) not in attr_docs
|
||||
imported = True
|
||||
else:
|
||||
imported = False
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user