diff --git a/sphinx/builders/__init__.py b/sphinx/builders/__init__.py index 077ab6abe..160f56b2f 100644 --- a/sphinx/builders/__init__.py +++ b/sphinx/builders/__init__.py @@ -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)