diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-09 00:59:32 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-09 00:59:32 +0900 |
commit | a80023f381e8458a77e730385357fe1fd309790d (patch) | |
tree | a3d7e0c5023e681d21d1b39efe43b56d6e73a950 | |
parent | a98b605100a7d8bff146b7776cfefef9f452904f (diff) | |
download | sphinx-git-a80023f381e8458a77e730385357fe1fd309790d.tar.gz |
Fix mypy violations (with types-requests-2.27.3)
-rw-r--r-- | sphinx/util/requests.py | 6 |
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', |