@@ -79,6 +79,7 @@ def extract_original_messages(self) -> Sequence[str]:
7979
8080class not_smartquotable :
8181 """A node which does not support smart-quotes."""
82+
8283 support_smartquotes = False
8384
8485
@@ -163,6 +164,7 @@ class desc_signature(_desc_classes_injector, nodes.Part, nodes.Inline, nodes.Tex
163164
164165 This node always has the classes ``sig``, ``sig-object``, and the domain it belongs to.
165166 """
167+
166168 # Note: the domain name is being added through a post-transform DescSigAddDomainAsClass
167169 classes = ['sig' , 'sig-object' ]
168170
@@ -181,6 +183,7 @@ class desc_signature_line(nodes.Part, nodes.Inline, nodes.FixedTextElement):
181183 with ``is_multiline`` set to ``True``.
182184 Set ``add_permalink = True`` for the line that should get the permalink.
183185 """
186+
184187 sphinx_line_type = ''
185188
186189
@@ -199,6 +202,7 @@ class desc_inline(_desc_classes_injector, nodes.Inline, nodes.TextElement):
199202 This node always has the classes ``sig``, ``sig-inline``,
200203 and the name of the domain it belongs to.
201204 """
205+
202206 classes = ['sig' , 'sig-inline' ]
203207
204208 def __init__ (self , domain : str , * args : Any , ** kwargs : Any ) -> None :
@@ -219,6 +223,7 @@ class desc_name(_desc_classes_injector, nodes.Part, nodes.Inline, nodes.FixedTex
219223
220224 This node always has the class ``sig-name``.
221225 """
226+
222227 classes = ['sig-name' , 'descname' ] # 'descname' is for backwards compatibility
223228
224229
@@ -230,6 +235,7 @@ class desc_addname(_desc_classes_injector, nodes.Part, nodes.Inline, nodes.Fixed
230235
231236 This node always has the class ``sig-prename``.
232237 """
238+
233239 # 'descclassname' is for backwards compatibility
234240 classes = ['sig-prename' , 'descclassname' ]
235241
@@ -256,6 +262,7 @@ class desc_parameterlist(nodes.Part, nodes.Inline, nodes.FixedTextElement):
256262 Set ``multi_line_parameter_list = True`` to describe a multi-line parameter list.
257263 In that case each parameter will then be written on its own, indented line.
258264 """
265+
259266 child_text_separator = ', '
260267
261268 def astext (self ) -> str :
@@ -269,6 +276,7 @@ class desc_type_parameter_list(nodes.Part, nodes.Inline, nodes.FixedTextElement)
269276 Set ``multi_line_parameter_list = True`` to describe a multi-line type parameters list.
270277 In that case each type parameter will then be written on its own, indented line.
271278 """
279+
272280 child_text_separator = ', '
273281
274282 def astext (self ) -> str :
@@ -285,6 +293,7 @@ class desc_type_parameter(nodes.Part, nodes.Inline, nodes.FixedTextElement):
285293
286294class desc_optional (nodes .Part , nodes .Inline , nodes .FixedTextElement ):
287295 """Node for marking optional parts of the parameter list."""
296+
288297 child_text_separator = ', '
289298
290299 def astext (self ) -> str :
@@ -315,6 +324,7 @@ class desc_annotation(nodes.Part, nodes.Inline, nodes.FixedTextElement):
315324
316325class desc_sig_element (nodes .inline , _desc_classes_injector ):
317326 """Common parent class of nodes for inline text of a signature."""
327+
318328 classes : list [str ] = []
319329
320330 def __init__ (self , rawsource : str = '' , text : str = '' ,
@@ -334,6 +344,7 @@ def __init_subclass__(cls, *, _sig_element: bool = False, **kwargs: Any):
334344
335345class desc_sig_space (desc_sig_element , _sig_element = True ):
336346 """Node for a space in a signature."""
347+
337348 classes = ["w" ]
338349
339350 def __init__ (self , rawsource : str = '' , text : str = ' ' ,
@@ -343,41 +354,49 @@ def __init__(self, rawsource: str = '', text: str = ' ',
343354
344355class desc_sig_name (desc_sig_element , _sig_element = True ):
345356 """Node for an identifier in a signature."""
357+
346358 classes = ["n" ]
347359
348360
349361class desc_sig_operator (desc_sig_element , _sig_element = True ):
350362 """Node for an operator in a signature."""
363+
351364 classes = ["o" ]
352365
353366
354367class desc_sig_punctuation (desc_sig_element , _sig_element = True ):
355368 """Node for punctuation in a signature."""
369+
356370 classes = ["p" ]
357371
358372
359373class desc_sig_keyword (desc_sig_element , _sig_element = True ):
360374 """Node for a general keyword in a signature."""
375+
361376 classes = ["k" ]
362377
363378
364379class desc_sig_keyword_type (desc_sig_element , _sig_element = True ):
365380 """Node for a keyword which is a built-in type in a signature."""
381+
366382 classes = ["kt" ]
367383
368384
369385class desc_sig_literal_number (desc_sig_element , _sig_element = True ):
370386 """Node for a numeric literal in a signature."""
387+
371388 classes = ["m" ]
372389
373390
374391class desc_sig_literal_string (desc_sig_element , _sig_element = True ):
375392 """Node for a string literal in a signature."""
393+
376394 classes = ["s" ]
377395
378396
379397class desc_sig_literal_char (desc_sig_element , _sig_element = True ):
380398 """Node for a character literal in a signature."""
399+
381400 classes = ["sc" ]
382401
383402
@@ -425,7 +444,7 @@ class index(nodes.Invisible, nodes.Inline, nodes.TextElement):
425444
426445
427446class centered (nodes .Part , nodes .TextElement ):
428- """This node is deprecated ."""
447+ """Deprecated ."""
429448
430449
431450class acks (nodes .Element ):
@@ -479,6 +498,7 @@ class pending_xref(nodes.Inline, nodes.Element):
479498 These nodes are resolved before writing output, in
480499 BuildEnvironment.resolve_references.
481500 """
501+
482502 child_text_separator = ''
483503
484504
0 commit comments