Fix typehints: sphinx.builders

This commit is contained in:
Takeshi KOMIYA 2018-11-05 01:30:28 +09:00
parent babd33e388
commit 4da03dc541

View File

@ -41,7 +41,7 @@ except ImportError:
if False:
# For type annotation
from typing import Any, Callable, Dict, Iterable, List, Sequence, Set, Tuple, Union # NOQA
from typing import Any, Callable, Dict, Iterable, List, Sequence, Set, Tuple, Type, Union # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.config import Config # NOQA
from sphinx.environment import BuildEnvironment # NOQA
@ -121,7 +121,7 @@ class Builder:
self.versioning_compare)
def get_translator_class(self, *args):
# type: (Any) -> nodes.NodeVisitor
# type: (Any) -> Type[nodes.NodeVisitor]
"""Return a class of translator."""
return self.app.registry.get_translator_class(self)