Skip to content

Commit 3771028

Browse files
committed
typing with string literals
1 parent 423a9e5 commit 3771028

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: redis/client.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
str_if_bytes,
5252
)
5353

54-
if TYPE_CHECKING:
55-
import OpenSSL
56-
import ssl
57-
5854
SYM_EMPTY = b""
5955
EMPTY_RESPONSE = "EMPTY_RESPONSE"
6056

@@ -205,9 +201,9 @@ def __init__(
205201
ssl_password: Optional[str] = None,
206202
ssl_validate_ocsp: bool = False,
207203
ssl_validate_ocsp_stapled: bool = False,
208-
ssl_ocsp_context: Optional[OpenSSL.SSL.Context] = None,
204+
ssl_ocsp_context: Optional["OpenSSL.SSL.Context"] = None,
209205
ssl_ocsp_expected_cert: Optional[str] = None,
210-
ssl_min_version: Optional[ssl.TLSVersion] = None,
206+
ssl_min_version: Optional["ssl.TLSVersion"] = None,
211207
ssl_ciphers: Optional[str] = None,
212208
max_connections: Optional[int] = None,
213209
single_connection_client: bool = False,

0 commit comments

Comments
 (0)