diff options
| author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-09-25 12:31:42 +0200 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-10-02 12:41:40 +0200 |
| commit | 2e37c5719d21165094d86a52d70fddda64153cdc (patch) | |
| tree | 6d3bebad3244264dea28abe36e495ba8279f4cdf /sphinx/domains/python.py | |
| parent | e008b436838a25d714a89c662998003374a86d82 (diff) | |
| download | sphinx-git-2e37c5719d21165094d86a52d70fddda64153cdc.tar.gz | |
py nodes, PyAttribute type
Diffstat (limited to 'sphinx/domains/python.py')
| -rw-r--r-- | sphinx/domains/python.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index a749b8745..5c8780bfc 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -843,7 +843,10 @@ class PyAttribute(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: |
