Skip to content

Commit

Permalink
typing with string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Vulwsztyn committed Sep 4, 2024
1 parent 423a9e5 commit d6a4326
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import time
import warnings
from itertools import chain
from typing import Any, Callable, Dict, List, Optional, Type, Union, Mapping, TYPE_CHECKING
from typing import Any, Callable, Dict, List, Optional, Type, Union, Mapping

from redis._cache import (
DEFAULT_ALLOW_LIST,
Expand Down Expand Up @@ -51,10 +51,6 @@
str_if_bytes,
)

if TYPE_CHECKING:
import OpenSSL
import ssl

SYM_EMPTY = b""
EMPTY_RESPONSE = "EMPTY_RESPONSE"

Expand Down Expand Up @@ -205,9 +201,9 @@ def __init__(
ssl_password: Optional[str] = None,
ssl_validate_ocsp: bool = False,
ssl_validate_ocsp_stapled: bool = False,
ssl_ocsp_context: Optional[OpenSSL.SSL.Context] = None,
ssl_ocsp_context: Optional["OpenSSL.SSL.Context"] = None,
ssl_ocsp_expected_cert: Optional[str] = None,
ssl_min_version: Optional[ssl.TLSVersion] = None,
ssl_min_version: Optional["ssl.TLSVersion"] = None,
ssl_ciphers: Optional[str] = None,
max_connections: Optional[int] = None,
single_connection_client: bool = False,
Expand Down

0 comments on commit d6a4326

Please sign in to comment.