summaryrefslogtreecommitdiff
path: root/sphinx/addnodes.py
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-03-20 16:25:09 +0100
committerJakob Lykke Andersen <Jakob@caput.dk>2021-04-12 19:05:58 +0200
commitd131ec7acbc2026c0cc05c58fa39f3d845f3e6ba (patch)
tree247ab71fb8a0edc7d163b57fa5baa161d5410483 /sphinx/addnodes.py
parent3c9a74cb0b9e5ca90adfb1ee55b2262717fae223 (diff)
downloadsphinx-git-d131ec7acbc2026c0cc05c58fa39f3d845f3e6ba.tar.gz
Decl styling, move desc dynamic classes to domain base class
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r--sphinx/addnodes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py
index f818e496d..ac41dd951 100644
--- a/sphinx/addnodes.py
+++ b/sphinx/addnodes.py
@@ -134,6 +134,9 @@ class desc(nodes.Admonition, nodes.Element):
- The name of the object type in the domain, e.g., ``function``.
"""
+ # TODO: can we introduce a constructor
+ # that forces the specification of the domain and objtyp?
+
class desc_signature(nodes.Part, nodes.Inline, nodes.TextElement):
"""Node for a single object signature.