Skip to content

Commit caa2c3f

Browse files
committed
Fix lint harder
1 parent d1d1f57 commit caa2c3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elastic_transport/_node/_http_aiohttp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ async def perform_request( # type: ignore[override]
170170
else:
171171
body_to_send = None
172172

173-
fingerprint = None
173+
aiohttp_ssl: Union["aiohttp.Fingerprint", bool] = True
174174
if self._ssl_assert_fingerprint:
175-
fingerprint = aiohttp_fingerprint(self._ssl_assert_fingerprint)
175+
aiohttp_ssl = aiohttp_fingerprint(self._ssl_assert_fingerprint)
176176

177177
try:
178178
start = self._loop.time()
@@ -182,7 +182,7 @@ async def perform_request( # type: ignore[override]
182182
data=body_to_send,
183183
headers=request_headers,
184184
timeout=aiohttp_timeout,
185-
ssl=fingerprint,
185+
ssl=aiohttp_ssl,
186186
) as response:
187187
if is_head: # We actually called 'GET' so throw away the data.
188188
await response.release()

0 commit comments

Comments
 (0)