Fix #8917: autodoc: Raises a warning if function has wrong __globals__ value

`sphinx.util.inspect:signature()` crashes with AttributeError when
subject has wrong `__globals__` value.  This ignores the error on
building.
This commit is contained in:
Takeshi KOMIYA
2021-02-24 01:32:05 +09:00
parent 4392557943
commit 4f072ee5c2
2 changed files with 13 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ Features added
Bugs fixed
----------
* #8917: autodoc: Raises a warning if function has wrong __globals__ value
* #8380: html search: Paragraphs in search results are not identified as ``<p>``
* #8915: html theme: The translation of sphinx_rtd_theme does not work
* #8342: Emit a warning if a unknown domain is given for directive or role (ex.