Skip to content

Commit 4fd061d

Browse files
committed
fix lint
1 parent 6989c46 commit 4fd061d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

redis/client.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44
import time
55
import warnings
66
from itertools import chain
7-
from typing import Any, Callable, Dict, List, Optional, Type, Union, Mapping
7+
from typing import (
8+
TYPE_CHECKING,
9+
Any,
10+
Callable,
11+
Dict,
12+
List,
13+
Mapping,
14+
Optional,
15+
Type,
16+
Union,
17+
)
818

919
from redis._parsers.encoders import Encoder
1020
from redis._parsers.helpers import (
@@ -53,6 +63,11 @@
5363
str_if_bytes,
5464
)
5565

66+
if TYPE_CHECKING:
67+
import ssl
68+
69+
import OpenSSL
70+
5671
SYM_EMPTY = b""
5772
EMPTY_RESPONSE = "EMPTY_RESPONSE"
5873

0 commit comments

Comments
 (0)