summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-09-25 12:35:52 +0200
committerJakob Lykke Andersen <Jakob@caput.dk>2021-10-02 12:41:40 +0200
commit8cd0847590ab4e10f42a14c73eceeb55c9040a92 (patch)
treebbe26d29791b9fac6e3f8c02cd1f79f4bbbf4ba0 /sphinx/domains/python.py
parent73ade60654793bc3d7db4bca4455f81275dc973a (diff)
downloadsphinx-git-8cd0847590ab4e10f42a14c73eceeb55c9040a92.tar.gz
py nodes, PyProperty
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r--sphinx/domains/python.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
index 5c6db3696..8ada379b2 100644
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -889,7 +889,10 @@ class PyProperty(PyObject):
typ = self.options.get('type')
if typ:
annotations = _parse_annotation(typ, self.env)
- signode += addnodes.desc_annotation(typ, '', nodes.Text(': '), *annotations)
+ signode += addnodes.desc_annotation(typ, '',
+ addnodes.desc_sig_punctuation('', ':'),
+ addnodes.desc_sig_space(),
+ *annotations)
return fullname, prefix