@@ -79,7 +79,7 @@ def build_need_repr(
7979
8080
8181@lru_cache (1 )
82- def _generate_parsers () -> Tuple [Values , Inliner , Parser ]:
82+ def _generate_parsers () -> tuple [Values , Inliner , Parser ]:
8383 doc_settings = OptionParser (components = (Parser ,)).get_default_values ()
8484 inline_parser = Inliner ()
8585 inline_parser .init_customizations (doc_settings ) # type: ignore
@@ -288,7 +288,7 @@ def __init__(
288288 "meta_links" : self .meta_links ,
289289 "meta_links_all" : self .meta_links_all , # type: ignore[dict-item]
290290 "meta_id" : self .meta_id ,
291- "meta_rst" : self .meta_rst ,
291+ "meta_rst" : self .meta_rst , # type: ignore[dict-item]
292292 "image" : self .image , # type: ignore[dict-item]
293293 "link" : self .link ,
294294 "collapse_button" : self .collapse_button ,
@@ -728,8 +728,8 @@ def meta_links_all(
728728 return data_container
729729
730730 def meta_rst (
731- self , name : str , prefix : Optional [ str ] = None , show_empty : bool = False
732- ) -> nodes .paragraph :
731+ self , name : str , prefix : str | None = None , show_empty : bool = False
732+ ) -> nodes .paragraph | list [ nodes . Element ] :
733733 """
734734 Returns the specific metadata of a need inside docutils nodes, parsed as multiline rst.
735735 Usage::
0 commit comments