diff --git a/doc/usage/restructuredtext/directives.rst b/doc/usage/restructuredtext/directives.rst index 933d213c9..b5b0a2980 100644 --- a/doc/usage/restructuredtext/directives.rst +++ b/doc/usage/restructuredtext/directives.rst @@ -885,7 +885,7 @@ mainly contained in information units, such as the language reference. .. index:: Python :name: py-index - .. versionadded:: 2.5 + .. versionadded:: 3.0 .. rst:role:: index diff --git a/sphinx/domains/index.py b/sphinx/domains/index.py index 44431eed5..7aa1018f5 100644 --- a/sphinx/domains/index.py +++ b/sphinx/domains/index.py @@ -71,7 +71,7 @@ class IndexDirective(SphinxDirective): final_argument_whitespace = True option_spec = { 'name': directives.unchanged, - } # type: Dict + } def run(self) -> List[Node]: arguments = self.arguments[0].split('\n')