Fix mypy violation

This commit is contained in:
Takeshi KOMIYA
2017-12-14 21:15:36 +09:00
parent 6dae5db9af
commit 0dfa88ec4b
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ from sphinx.transforms import SphinxSmartQuotes
if False:
# For type annotation
from typing import Any, Dict, List, Type # NOQA
from docutils import nodes # NOQA
from docutils.transforms import Transform # NOQA
from sphinx.application import Sphinx # NOQA

View File

@@ -182,7 +182,7 @@ class LoggingReporter(Reporter):
stream = WarningStream()
Reporter.__init__(self, source, report_level, halt_level,
stream, debug, error_handler=error_handler)
self.source_and_line = None
self.source_and_line = None # type: SphinxFileInput
def set_source(self, source):
# type: (SphinxFileInput) -> None