diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-06 11:34:10 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-06 11:43:03 +0900 |
commit | f695aac2e28e1463385b399b61fc2c4b4ef40c5c (patch) | |
tree | 03613f0036becdb9aca53b716908e6ded9320835 /sphinx/application.py | |
parent | 50c783ef55b787856f6fb7bee79370ff789246fa (diff) | |
download | sphinx-git-f695aac2e28e1463385b399b61fc2c4b4ef40c5c.tar.gz |
Fix mypy violations
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 27ef41efe..7a4736d42 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -55,7 +55,7 @@ if False: from docutils.parsers import Parser # NOQA from docutils.transform import Transform # NOQA from sphinx.builders import Builder # NOQA - from sphinx.domains import Domain # NOQA + from sphinx.domains import Domain, Index # NOQA # List of all known core events. Maps name to arguments description. events = { @@ -430,7 +430,7 @@ class Sphinx(object): logger.debug2(message, *args, **kwargs) def _display_chunk(chunk): - # type: (Union[List, Tuple, unicode]) -> unicode + # type: (Any) -> unicode if isinstance(chunk, (list, tuple)): if len(chunk) == 1: return text_type(chunk[0]) @@ -742,7 +742,7 @@ class Sphinx(object): self.domains[domain].roles[name] = role def add_index_to_domain(self, domain, index): - # type: (unicode, unicode) -> None + # type: (unicode, Type[Index]) -> None logger.debug('[app] adding index to domain: %r', (domain, index)) if domain not in self.domains: raise ExtensionError('domain %s not yet registered' % domain) |