summaryrefslogtreecommitdiff
path: root/sphinx/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/events.py')
-rw-r--r--sphinx/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/events.py b/sphinx/events.py
index ff49f290c..46759eccd 100644
--- a/sphinx/events.py
+++ b/sphinx/events.py
@@ -14,14 +14,14 @@ import warnings
from collections import defaultdict
from operator import attrgetter
from typing import Any, Callable, Dict, List, NamedTuple
+from typing import TYPE_CHECKING
from sphinx.deprecation import RemovedInSphinx40Warning
from sphinx.errors import ExtensionError
from sphinx.locale import __
from sphinx.util import logging
-if False:
- # For type annotation
+if TYPE_CHECKING:
from sphinx.application import Sphinx