summaryrefslogtreecommitdiff
path: root/sphinx/writers/xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/xml.py')
-rw-r--r--sphinx/writers/xml.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/writers/xml.py b/sphinx/writers/xml.py
index 64da854e5..c75f64e25 100644
--- a/sphinx/writers/xml.py
+++ b/sphinx/writers/xml.py
@@ -8,6 +8,8 @@
:license: BSD, see LICENSE for details.
"""
+from typing import Any
+
from docutils.writers.docutils_xml import Writer as BaseXMLWriter
from sphinx.builders import Builder
@@ -19,7 +21,7 @@ class XMLWriter(BaseXMLWriter):
self.builder = builder
self.translator_class = self.builder.get_translator_class()
- def translate(self, *args, **kwargs) -> None:
+ def translate(self, *args: Any, **kwargs: Any) -> None:
self.document.settings.newlines = \
self.document.settings.indents = \
self.builder.env.config.xml_pretty