summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 00:59:32 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 00:59:32 +0900
commita80023f381e8458a77e730385357fe1fd309790d (patch)
treea3d7e0c5023e681d21d1b39efe43b56d6e73a950
parenta98b605100a7d8bff146b7776cfefef9f452904f (diff)
downloadsphinx-git-a80023f381e8458a77e730385357fe1fd309790d.tar.gz
Fix mypy violations (with types-requests-2.27.3)
-rw-r--r--sphinx/util/requests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py
index bd9a94338..581efbfd5 100644
--- a/sphinx/util/requests.py
+++ b/sphinx/util/requests.py
@@ -25,17 +25,17 @@ try:
except ImportError:
# python-requests package in Debian jessie does not provide ``requests.packages.urllib3``.
# So try to import the exceptions from urllib3 package.
- from urllib3.exceptions import SSLError # type: ignore
+ from urllib3.exceptions import SSLError
try:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
except ImportError:
try:
# for Debian-jessie
- from urllib3.exceptions import InsecureRequestWarning # type: ignore
+ from urllib3.exceptions import InsecureRequestWarning
except ImportError:
# for requests < 2.4.0
- InsecureRequestWarning = None # type: ignore
+ InsecureRequestWarning = None
useragent_header = [('User-Agent',