File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9393if TYPE_CHECKING :
9494 from pymongocrypt .mongocrypt import MongoCryptKmsContext
9595
96+ from pymongo .pyopenssl_context import _sslConn
9697 from pymongo .typings import _Address
9798
9899
110111_KEY_VAULT_OPTS = CodecOptions (document_class = RawBSONDocument )
111112
112113
113- async def _connect_kms (address : _Address , opts : PoolOptions ):
114+ async def _connect_kms (address : _Address , opts : PoolOptions ) -> Union [ socket . socket , _sslConn ] :
114115 try :
115116 return await _configured_socket (address , opts )
116117 except Exception as exc :
Original file line number Diff line number Diff line change 9393if TYPE_CHECKING :
9494 from pymongocrypt .mongocrypt import MongoCryptKmsContext
9595
96+ from pymongo .pyopenssl_context import _sslConn
9697 from pymongo .typings import _Address
9798
9899
110111_KEY_VAULT_OPTS = CodecOptions (document_class = RawBSONDocument )
111112
112113
113- def _connect_kms (address : _Address , opts : PoolOptions ):
114+ def _connect_kms (address : _Address , opts : PoolOptions ) -> Union [ socket . socket , _sslConn ] :
114115 try :
115116 return _configured_socket (address , opts )
116117 except Exception as exc :
You can’t perform that action at this time.
0 commit comments