summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index eef1a157a..34c0cae33 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -10,8 +10,9 @@
:license: BSD, see LICENSE for details.
"""
-if False:
- # For type annotation
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
from typing import Any # NOQA