summaryrefslogtreecommitdiff
path: root/sphinx/parsers.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/parsers.py')
-rw-r--r--sphinx/parsers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/parsers.py b/sphinx/parsers.py
index 3f03501e2..3bcd69f52 100644
--- a/sphinx/parsers.py
+++ b/sphinx/parsers.py
@@ -35,7 +35,7 @@ class Parser(docutils.parsers.Parser):
#: The environment object
env: BuildEnvironment
- def set_application(self, app: "Sphinx") -> None:
+ def set_application(self, app: Sphinx) -> None:
"""set_application will be called from Sphinx to set app and other instance variables
:param sphinx.application.Sphinx app: Sphinx application object
@@ -86,7 +86,7 @@ class RSTParser(docutils.parsers.rst.Parser, Parser):
append_epilog(content, self.config.rst_epilog)
-def setup(app: "Sphinx") -> dict[str, Any]:
+def setup(app: Sphinx) -> dict[str, Any]:
app.add_source_parser(RSTParser)
return {