diff options
| author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-09-25 12:22:38 +0200 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-10-02 12:41:40 +0200 |
| commit | 3979bbad7fffda48f1e823acb516986104da12c9 (patch) | |
| tree | df5d724032073cf89e33d6158c48afed9b9e3a62 /sphinx/domains/python.py | |
| parent | 3a1bd32665b7dc9b459913ecc4e8122a8bc2660f (diff) | |
| download | sphinx-git-3979bbad7fffda48f1e823acb516986104da12c9.tar.gz | |
py nodes, PyVariable type
Diffstat (limited to 'sphinx/domains/python.py')
| -rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 4faf3bd38..6646c85be 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -676,7 +676,9 @@ class PyVariable(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) value = self.options.get('value') if value: |
