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:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-03-20 21:43:41 +0300
committerJakob Lykke Andersen <Jakob@caput.dk>2021-04-12 20:07:51 +0300
commit3fdc9bcf9fca90e30246b972651cbb29756c56fd (patch)
treefc2bde6c2dbb7e5a236df258fae55b03e2b60ce0 /sphinx/addnodes.py
parent87414faa92fe987b70dc2d4cb61d08a609a5e56c (diff)
Fix desc_sig_space
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r--sphinx/addnodes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py
index 23cf0acb8..5d26643ed 100644
--- a/sphinx/addnodes.py
+++ b/sphinx/addnodes.py
@@ -294,8 +294,9 @@ class desc_sig_space(desc_sig_element):
"""Node for a space in a signature."""
classes = ["w"]
- def __init__(self) -> None:
- super().__init__(' ', ' ')
+ def __init__(self, rawsource: str = '', text: str = ' ',
+ *children: Element, **attributes: Any) -> None:
+ super().__init__(rawsource, text, *children, **attributes)
class desc_sig_name(desc_sig_element):