|
4 | 4 | import socket |
5 | 5 | from json import JSONDecodeError |
6 | 6 | from types import TracebackType |
7 | | -from typing import Any, Dict, Iterable, List, Optional |
| 7 | +from typing import Any, Dict, List, Optional |
8 | 8 |
|
9 | 9 | from httpcore.backends.auto import AutoBackend |
10 | | -from httpcore.backends.base import SOCKET_OPTION, AsyncNetworkStream |
| 10 | +from httpcore.backends.base import AsyncNetworkStream |
11 | 11 | from httpx import AsyncHTTPTransport, HTTPStatusError, RequestError, Timeout |
12 | 12 |
|
13 | 13 | from firebolt.async_db.cursor import Cursor |
@@ -134,16 +134,20 @@ class OverriddenHttpBackend(AutoBackend): |
134 | 134 | and `KEEPIDLE` settings. |
135 | 135 | """ |
136 | 136 |
|
137 | | - async def connect_tcp( |
| 137 | + async def connect_tcp( # type: ignore [override] |
138 | 138 | self, |
139 | 139 | host: str, |
140 | 140 | port: int, |
141 | 141 | timeout: Optional[float] = None, |
142 | 142 | local_address: Optional[str] = None, |
143 | | - socket_options: Optional[Iterable[SOCKET_OPTION]] = None, |
| 143 | + **kwargs: Any, |
144 | 144 | ) -> AsyncNetworkStream: |
145 | | - stream = await super().connect_tcp( |
146 | | - host, port, timeout=timeout, local_address=local_address |
| 145 | + stream = await super().connect_tcp( # type: ignore [call-arg] |
| 146 | + host, |
| 147 | + port, |
| 148 | + timeout=timeout, |
| 149 | + local_address=local_address, |
| 150 | + **kwargs, |
147 | 151 | ) |
148 | 152 | # Enable keepalive |
149 | 153 | stream.get_extra_info("socket").setsockopt( |
|
0 commit comments