Skip to content

Commit f0339e7

Browse files
committed
linters fixed
1 parent 102d825 commit f0339e7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

redis/client.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import copy
22
import re
3+
import ssl
34
import threading
45
import time
56
import warnings
67
from itertools import chain
7-
from typing import Any, Callable, Dict, List, Optional, Type, Union, Mapping, TYPE_CHECKING
8+
from typing import Any, Callable, Dict, List, Mapping, Optional, Type, Union
89

910
from redis._cache import (
1011
DEFAULT_ALLOW_LIST,
@@ -51,10 +52,6 @@
5152
str_if_bytes,
5253
)
5354

54-
if TYPE_CHECKING:
55-
import OpenSSL
56-
import ssl
57-
5855
SYM_EMPTY = b""
5956
EMPTY_RESPONSE = "EMPTY_RESPONSE"
6057

@@ -205,7 +202,7 @@ def __init__(
205202
ssl_password: Optional[str] = None,
206203
ssl_validate_ocsp: bool = False,
207204
ssl_validate_ocsp_stapled: bool = False,
208-
ssl_ocsp_context: Optional[OpenSSL.SSL.Context] = None,
205+
ssl_ocsp_context=None,
209206
ssl_ocsp_expected_cert: Optional[str] = None,
210207
ssl_min_version: Optional[ssl.TLSVersion] = None,
211208
ssl_ciphers: Optional[str] = None,

0 commit comments

Comments
 (0)