diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-12-19 10:28:48 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-12-19 12:42:01 +0300 |
commit | 30c594fbc592a741956c067f5188f9bf6ecd25da (patch) | |
tree | 5188ee1caed867de040071bbd3a018d1045ea0c9 /sphinx/util | |
parent | 00db1ea631bf72103d32cdb1edf4304b980502de (diff) |
Fix #8365: py domain: :type: and :rtype: gives false ambiguous warnings
The searching context like py:module and py:class are missing in the
pending_xref nodes generated from info-field-lists. This sets these
searching context info to them.
Diffstat (limited to 'sphinx/util')
-rw-r--r-- | sphinx/util/docfields.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py index 404bb127f..9a57ccff7 100644 --- a/sphinx/util/docfields.py +++ b/sphinx/util/docfields.py @@ -295,6 +295,7 @@ class DocFieldTransformer: self.directive.domain, target, contnode=content[0], + env=self.directive.state.document.settings.env ) if _is_single_paragraph(field_body): paragraph = cast(nodes.paragraph, field_body[0]) |