mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #10509: autosummary: autosummary fails with a shared library
This commit is contained in:
parent
ab58bbaed7
commit
ce345a2f28
1
CHANGES
1
CHANGES
@ -16,6 +16,7 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10509: autosummary: autosummary fails with a shared library
|
||||
* #10498: gettext: TypeError is raised when sorting warning messages if a node
|
||||
has no line number
|
||||
* #10493: html theme: :rst:dir:`topic` directive is rendered incorrectly with
|
||||
|
@ -155,8 +155,12 @@ class ModuleScanner:
|
||||
|
||||
def scan(self, imported_members: bool) -> List[str]:
|
||||
members = []
|
||||
analyzer = ModuleAnalyzer.for_module(self.object.__name__)
|
||||
attr_docs = analyzer.find_attr_docs()
|
||||
try:
|
||||
analyzer = ModuleAnalyzer.for_module(self.object.__name__)
|
||||
attr_docs = analyzer.find_attr_docs()
|
||||
except PycodeError:
|
||||
attr_docs = {}
|
||||
|
||||
for name in members_of(self.object, self.app.config):
|
||||
try:
|
||||
value = safe_getattr(self.object, name)
|
||||
|
Loading…
Reference in New Issue
Block a user