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 93
93
if TYPE_CHECKING :
94
94
from pymongocrypt .mongocrypt import MongoCryptKmsContext
95
95
96
+ from pymongo .pyopenssl_context import _sslConn
96
97
from pymongo .typings import _Address
97
98
98
99
110
111
_KEY_VAULT_OPTS = CodecOptions (document_class = RawBSONDocument )
111
112
112
113
113
- async def _connect_kms (address : _Address , opts : PoolOptions ):
114
+ async def _connect_kms (address : _Address , opts : PoolOptions ) -> Union [ socket . socket , _sslConn ] :
114
115
try :
115
116
return await _configured_socket (address , opts )
116
117
except Exception as exc :
Original file line number Diff line number Diff line change 93
93
if TYPE_CHECKING :
94
94
from pymongocrypt .mongocrypt import MongoCryptKmsContext
95
95
96
+ from pymongo .pyopenssl_context import _sslConn
96
97
from pymongo .typings import _Address
97
98
98
99
110
111
_KEY_VAULT_OPTS = CodecOptions (document_class = RawBSONDocument )
111
112
112
113
113
- def _connect_kms (address : _Address , opts : PoolOptions ):
114
+ def _connect_kms (address : _Address , opts : PoolOptions ) -> Union [ socket . socket , _sslConn ] :
114
115
try :
115
116
return _configured_socket (address , opts )
116
117
except Exception as exc :
You can’t perform that action at this time.
0 commit comments