mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix mypy violation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user