From 4b760133fc41cec7d6a097db8ce24abaa25ec24b Mon Sep 17 00:00:00 2001 From: Artur Mostowski Date: Fri, 20 Sep 2024 19:22:29 +0200 Subject: [PATCH] remove OpenSSL from typing --- redis/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redis/client.py b/redis/client.py index 8661121f38..078db6d9e3 100755 --- a/redis/client.py +++ b/redis/client.py @@ -7,7 +7,6 @@ from itertools import chain from typing import Any, Callable, Dict, List, Mapping, Optional, Type, Union -import OpenSSL from redis._cache import ( DEFAULT_ALLOW_LIST, DEFAULT_DENY_LIST, @@ -203,7 +202,7 @@ 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=None, ssl_ocsp_expected_cert: Optional[str] = None, ssl_min_version: Optional[ssl.TLSVersion] = None, ssl_ciphers: Optional[str] = None,