Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions numpydoc/numpydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ def mangle_docstrings(app: SphinxApp, what, name, obj, options, lines):
"xref_aliases": app.config.numpydoc_xref_aliases_complete,
"xref_ignore": app.config.numpydoc_xref_ignore,
}

cfg.update(options or {})
try:
cfg.update(options or {})
except TypeError:
cfg.update(options.__dict__ or {})
u_NL = "\n"
if what == "module":
# Strip top title
Expand Down
Loading