We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 423a9e5 commit 3771028Copy full SHA for 3771028
redis/client.py
@@ -51,10 +51,6 @@
51
str_if_bytes,
52
)
53
54
-if TYPE_CHECKING:
55
- import OpenSSL
56
- import ssl
57
-
58
SYM_EMPTY = b""
59
EMPTY_RESPONSE = "EMPTY_RESPONSE"
60
@@ -205,9 +201,9 @@ def __init__(
205
201
ssl_password: Optional[str] = None,
206
202
ssl_validate_ocsp: bool = False,
207
203
ssl_validate_ocsp_stapled: bool = False,
208
- ssl_ocsp_context: Optional[OpenSSL.SSL.Context] = None,
204
+ ssl_ocsp_context: Optional["OpenSSL.SSL.Context"] = None,
209
ssl_ocsp_expected_cert: Optional[str] = None,
210
- ssl_min_version: Optional[ssl.TLSVersion] = None,
+ ssl_min_version: Optional["ssl.TLSVersion"] = None,
211
ssl_ciphers: Optional[str] = None,
212
max_connections: Optional[int] = None,
213
single_connection_client: bool = False,
0 commit comments