Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6809481 commit 3c5ec4bCopy full SHA for 3c5ec4b
sphinx_automodapi/automodsumm.py
@@ -699,10 +699,12 @@ def setup(app):
699
# try to use as much of API as possible here
700
from sphinx.ext.autosummary import process_generate_options
701
listener_id = None
702
- for lid, func in app.events.listeners['builder-inited'].items():
703
- if func is process_generate_options:
704
- listener_id = lid
705
- break
+ listeners = app.events.listeners['builder-inherited']
+ if listeners and isinstance(listeners, dict): # in case API changes
+ for lid, func in listeners.items():
+ if func is process_generate_options:
706
+ listener_id = lid
707
+ break
708
if listener_id is not None:
709
app.disconnect(listener_id)
710
app.connect('builder-inited', process_generate_options)
0 commit comments