Skip to content

Commit 2d341b8

Browse files
committed
More typing fixes
1 parent 427bc36 commit 2d341b8

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
@@ -312,7 +312,7 @@ async def _async_configured_socket(
312312
and not options.tls_allow_invalid_hostnames
313313
):
314314
try:
315-
ssl.match_hostname(ssl_sock.getpeercert(), hostname=host) # type:ignore[attr-defined]
315+
ssl.match_hostname(ssl_sock.getpeercert(), hostname=host) # type:ignore[attr-defined, unused-ignore]
316316
except _CertificateError:
317317
ssl_sock.close()
318318
raise
@@ -488,7 +488,7 @@ def _configured_socket(address: _Address, options: PoolOptions) -> Union[socket.
488488
and not options.tls_allow_invalid_hostnames
489489
):
490490
try:
491-
ssl.match_hostname(ssl_sock.getpeercert(), hostname=host) # type:ignore[attr-defined]
491+
ssl.match_hostname(ssl_sock.getpeercert(), hostname=host) # type:ignore[attr-defined, unused-ignore]
492492
except _CertificateError:
493493
ssl_sock.close()
494494
raise

0 commit comments

Comments
 (0)