Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-10 20:36:04 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-29 11:00:58 +0300
commitde52e77bc0ef1454f758a6cea8c6a7044ba0b3c7 (patch)
treece64ad2b02786937b7d4114c81e3c67360537657 /sphinx/directives
parent8cfea7beddc26c51be08b41a09db1b96afad3d85 (diff)
refactor: Set source_info to nodes
Diffstat (limited to 'sphinx/directives')
-rw-r--r--sphinx/directives/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/directives/__init__.py b/sphinx/directives/__init__.py
index 8f290d62d..0d9490f31 100644
--- a/sphinx/directives/__init__.py
+++ b/sphinx/directives/__init__.py
@@ -171,6 +171,7 @@ class ObjectDescription(SphinxDirective):
# add a signature node for each signature in the current unit
# and add a reference target for it
signode = addnodes.desc_signature(sig, '')
+ self.set_source_info(signode)
node.append(signode)
try:
# name can also be a tuple, e.g. (classname, objname);