diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-03-20 21:43:41 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-12 20:07:51 +0300 |
commit | 3fdc9bcf9fca90e30246b972651cbb29756c56fd (patch) | |
tree | fc2bde6c2dbb7e5a236df258fae55b03e2b60ce0 /sphinx/addnodes.py | |
parent | 87414faa92fe987b70dc2d4cb61d08a609a5e56c (diff) |
Fix desc_sig_space
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r-- | sphinx/addnodes.py | 5 |
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): |