summaryrefslogtreecommitdiff
path: root/sphinx/util/requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/requests.py')
-rw-r--r--sphinx/util/requests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py
index b6c0d1ab8..2eab6e3ec 100644
--- a/sphinx/util/requests.py
+++ b/sphinx/util/requests.py
@@ -13,6 +13,7 @@ from __future__ import absolute_import
import warnings
from contextlib import contextmanager
+from typing import TYPE_CHECKING
import pkg_resources
import requests
@@ -75,8 +76,7 @@ else:
'install requests-2.4.1+.'
)
-if False:
- # For type annotation
+if TYPE_CHECKING:
from typing import Any, Generator, Union # NOQA
from sphinx.config import Config # NOQA