Skip to content

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

Merged
tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:8917_warning_for_wrong___globals__
Feb 25, 2021
Merged

tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:8917_warning_for_wrong___globals__

Conversation

@tk0miya

@tk0miya tk0miya commented Feb 23, 2021 •

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Bugfix

Purpose

Comment thread sphinx/ext/autodoc/__init__.py Resolved
…__globals__ value

`sphinx.util.inspect:signature()` crashes with AttributeError when
subject has wrong `__globals__` value.  This ignores the error on
building.
@tk0miya
tk0miya force-pushed the 8917_warning_for_wrong___globals__ branch from 3da4e5d to 4f072ee Compare February 25, 2021 16:59
@tk0miya
tk0miya merged commit 529386f into sphinx-doc:master Feb 25, 2021
@tk0miya
tk0miya deleted the 8917_warning_for_wrong___globals__ branch February 25, 2021 17:09
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant