Skip to content

Commit a3de67c

Browse files
authored
Fix type-hints
1 parent 07d5b8e commit a3de67c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx_needs/layout.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -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
@@ -728,7 +728,7 @@ 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
731+
self, name: str, prefix: str | None = None, show_empty: bool = False
732732
) -> nodes.paragraph:
733733
"""
734734
Returns the specific metadata of a need inside docutils nodes, parsed as multiline rst.

0 commit comments

Comments
 (0)