mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7727: autosummary raises PycodeError for namespace python package
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -16,6 +16,8 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7727: autosummary: raise PycodeError when documenting python package
|
||||
without __init__.py
|
||||
* #8364: C, properly initialize attributes in empty symbols.
|
||||
|
||||
Testing
|
||||
|
||||
@@ -691,7 +691,7 @@ def import_ivar_by_name(name: str, prefixes: List[str] = [None]) -> Tuple[str, A
|
||||
analyzer = ModuleAnalyzer.for_module(modname)
|
||||
if (qualname, attr) in analyzer.find_attr_docs():
|
||||
return real_name + "." + attr, INSTANCEATTR, obj, modname
|
||||
except (ImportError, ValueError):
|
||||
except (ImportError, ValueError, PycodeError):
|
||||
pass
|
||||
|
||||
raise ImportError
|
||||
|
||||
Reference in New Issue
Block a user