diff --git a/langserve/client.py b/langserve/client.py index 93e23919..859cceee 100644 --- a/langserve/client.py +++ b/langserve/client.py @@ -8,6 +8,7 @@ from concurrent.futures import ThreadPoolExecutor from functools import lru_cache from typing import ( + TYPE_CHECKING, Any, AsyncIterator, Dict, @@ -49,9 +50,8 @@ logger = logging.getLogger(__name__) -import typing - -if typing.TYPE_CHECKING: # We simply follow the way httpx do +if TYPE_CHECKING: + # For type checking httpx types import ssl