Skip to content

Commit 0abdcc0

Browse files
committed
More typing fixes
1 parent f13fe67 commit 0abdcc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymongo/pool_shared.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ async def _configured_protocol(address: _Address, options: PoolOptions) -> Async
286286
and not options.tls_allow_invalid_hostnames
287287
):
288288
try:
289-
ssl.match_hostname(transport.get_extra_info("peercert"), hostname=host) # type:ignore[attr-defined]
289+
ssl.match_hostname(transport.get_extra_info("peercert"), hostname=host) # type:ignore[attr-defined,unused-ignore]
290290
except _CertificateError:
291291
transport.abort()
292292
raise
@@ -334,7 +334,7 @@ def _configured_socket(address: _Address, options: PoolOptions) -> NetworkingInt
334334
and not options.tls_allow_invalid_hostnames
335335
):
336336
try:
337-
ssl.match_hostname(ssl_sock.getpeercert(), hostname=host) # type:ignore[attr-defined]
337+
ssl.match_hostname(ssl_sock.getpeercert(), hostname=host) # type:ignore[attr-defined,unused-ignore]
338338
except _CertificateError:
339339
ssl_sock.close()
340340
raise

0 commit comments

Comments
 (0)