diff options
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r-- | sphinx/util/logging.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 266e2b0a0..c9085c663 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -13,6 +13,7 @@ import logging.handlers from collections import defaultdict from contextlib import contextmanager from typing import Any, Dict, Generator, IO, List, Tuple, Type, Union +from typing import TYPE_CHECKING from docutils import nodes from docutils.nodes import Node @@ -21,8 +22,7 @@ from docutils.utils import get_source_line from sphinx.errors import SphinxWarning from sphinx.util.console import colorize -if False: - # For type annotation +if TYPE_CHECKING: from sphinx.application import Sphinx |