mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 11:54:52 +00:00
Change type hint for backward compatibility with python <3.9
This commit is contained in:
parent
51e3f84453
commit
5161d4148e
@ -3,7 +3,7 @@ import requests
|
||||
|
||||
from aiohttp import ClientSession, ClientTimeout
|
||||
from pydantic import ValidationError
|
||||
from typing import Dict, Optional, List, AsyncIterator, Iterator, Union
|
||||
from typing import Dict, Optional, List, AsyncIterator, Iterator, Union, Tuple
|
||||
|
||||
from text_generation.types import (
|
||||
StreamResponse,
|
||||
@ -41,7 +41,7 @@ class Client:
|
||||
headers: Optional[Dict[str, str]] = None,
|
||||
cookies: Optional[Dict[str, str]] = None,
|
||||
timeout: int = 10,
|
||||
cert: Optional[Union[str, tuple[str, str]]] = None,
|
||||
cert: Optional[Union[str, Tuple[str, str]]] = None,
|
||||
):
|
||||
"""
|
||||
Args:
|
||||
|
Loading…
Reference in New Issue
Block a user