Skip to content

Commit da21372

Browse files
committed
Fix lint
1 parent 379c0c2 commit da21372

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

elastic_transport/_node/_urllib3_chain_certs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _validate_conn(self, conn: HTTPSConnection) -> None: # type: ignore[overrid
108108
if sys.version_info >= (3, 13):
109109
fingerprints = [
110110
hash_func(cert).digest()
111-
for cert in conn.sock.get_verified_chain()
111+
for cert in conn.sock.get_verified_chain() # type: ignore
112112
]
113113
else:
114114
# 'get_verified_chain()' and 'Certificate.public_bytes()' are private APIs

tests/async_/test_async_transport.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,12 @@ async def test_heterogeneous_node_config_warning_with_sniffing():
510510
context = ssl.create_default_context()
511511
AsyncTransport(
512512
[
513-
NodeConfig("https", "localhost", 80, path_prefix="/a", ssl_context=context),
514-
NodeConfig("https", "localhost", 81, path_prefix="/b", ssl_context=context),
513+
NodeConfig(
514+
"https", "localhost", 80, path_prefix="/a", ssl_context=context
515+
),
516+
NodeConfig(
517+
"https", "localhost", 81, path_prefix="/b", ssl_context=context
518+
),
515519
],
516520
sniff_on_start=True,
517521
sniff_callback=lambda *_: [

tests/test_transport.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,12 @@ def test_heterogeneous_node_config_warning_with_sniffing():
541541
context = ssl.create_default_context()
542542
Transport(
543543
[
544-
NodeConfig("https", "localhost", 80, path_prefix="/a", ssl_context=context),
545-
NodeConfig("https", "localhost", 81, path_prefix="/b", ssl_context=context),
544+
NodeConfig(
545+
"https", "localhost", 80, path_prefix="/a", ssl_context=context
546+
),
547+
NodeConfig(
548+
"https", "localhost", 81, path_prefix="/b", ssl_context=context
549+
),
546550
],
547551
sniff_on_start=True,
548552
sniff_callback=lambda *_: [

0 commit comments

Comments
 (0)