|
11 | 11 | import typing |
12 | 12 | import warnings |
13 | 13 |
|
14 | | -from urllib3.exceptions import ClosedPoolError, ConnectTimeoutError |
15 | | -from urllib3.exceptions import HTTPError as _HTTPError |
16 | | -from urllib3.exceptions import InvalidHeader as _InvalidHeader |
17 | 14 | from urllib3.exceptions import ( |
| 15 | + ClosedPoolError, |
| 16 | + ConnectTimeoutError, |
18 | 17 | LocationValueError, |
19 | 18 | MaxRetryError, |
20 | 19 | NewConnectionError, |
21 | 20 | ProtocolError, |
| 21 | + ReadTimeoutError, |
| 22 | + ResponseError, |
22 | 23 | ) |
| 24 | +from urllib3.exceptions import HTTPError as _HTTPError |
| 25 | +from urllib3.exceptions import InvalidHeader as _InvalidHeader |
23 | 26 | from urllib3.exceptions import ProxyError as _ProxyError |
24 | | -from urllib3.exceptions import ReadTimeoutError, ResponseError |
25 | 27 | from urllib3.exceptions import SSLError as _SSLError |
26 | 28 | from urllib3.poolmanager import PoolManager, proxy_from_url |
27 | 29 | from urllib3.util import Timeout as TimeoutSauce |
@@ -76,9 +78,9 @@ def SOCKSProxyManager(*args, **kwargs): |
76 | 78 | def _urllib3_request_context( |
77 | 79 | request: "PreparedRequest", |
78 | 80 | verify: "bool | str | None", |
79 | | - client_cert: "typing.Tuple[str, str] | str | None", |
| 81 | + client_cert: "tuple[str, str] | str | None", |
80 | 82 | poolmanager: "PoolManager", |
81 | | -) -> "(typing.Dict[str, typing.Any], typing.Dict[str, typing.Any])": |
| 83 | +) -> "(dict[str, typing.Any], dict[str, typing.Any])": |
82 | 84 | host_params = {} |
83 | 85 | pool_kwargs = {} |
84 | 86 | parsed_request_url = urlparse(request.url) |
|
0 commit comments