diff options
Diffstat (limited to 'sphinx/writers/xml.py')
| -rw-r--r-- | sphinx/writers/xml.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/writers/xml.py b/sphinx/writers/xml.py index 64da854e5..d007898ba 100644 --- a/sphinx/writers/xml.py +++ b/sphinx/writers/xml.py @@ -4,10 +4,12 @@ Docutils-native XML and pseudo-XML writers. - :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :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 |
