summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index 30e4dffdb..e84f5ae49 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -13,7 +13,7 @@ import os
import shutil
import tempfile
from os import path
-from typing import Any, Dict, List
+from typing import TYPE_CHECKING, Any, Dict, List
from zipfile import ZipFile
import pkg_resources
@@ -24,8 +24,7 @@ from sphinx.locale import __
from sphinx.util import logging
from sphinx.util.osutil import ensuredir
-if False:
- # For type annotation
+if TYPE_CHECKING:
from sphinx.application import Sphinx