@@ -167,7 +167,7 @@ class desc_signature(_desc_classes_injector, nodes.Part, nodes.Inline, nodes.Tex
167167 classes = ['sig' , 'sig-object' ]
168168
169169 @property
170- def child_text_separator (self ):
170+ def child_text_separator (self ) -> str : # type: ignore[override]
171171 if self .get ('is_multiline' ):
172172 return ' '
173173 else :
@@ -258,7 +258,7 @@ class desc_parameterlist(nodes.Part, nodes.Inline, nodes.FixedTextElement):
258258 """
259259 child_text_separator = ', '
260260
261- def astext (self ):
261+ def astext (self ) -> str :
262262 return f'({ super ().astext ()} )'
263263
264264
@@ -271,7 +271,7 @@ class desc_type_parameter_list(nodes.Part, nodes.Inline, nodes.FixedTextElement)
271271 """
272272 child_text_separator = ', '
273273
274- def astext (self ):
274+ def astext (self ) -> str :
275275 return f'[{ super ().astext ()} ]'
276276
277277
@@ -322,7 +322,7 @@ def __init__(self, rawsource: str = '', text: str = '',
322322 super ().__init__ (rawsource , text , * children , ** attributes )
323323 self ['classes' ].extend (self .classes )
324324
325- def __init_subclass__ (cls , * , _sig_element = False , ** kwargs : Any ):
325+ def __init_subclass__ (cls , * , _sig_element : bool = False , ** kwargs : Any ):
326326 super ().__init_subclass__ (** kwargs )
327327 if _sig_element :
328328 # add the class to the SIG_ELEMENTS set if asked
0 commit comments