11import time
22
3- from typing import Optional , Union , Dict , Any
4-
3+ from typing import Optional , Union , Dict , Any , List
54from algoliasearch .exceptions import (
65 AlgoliaUnreachableHostException ,
76 RequestException
@@ -56,7 +55,7 @@ def read(self, verb, path, data, request_options):
5655 return self .request (verb , hosts , path , data , request_options , timeout )
5756
5857 def request (self , verb , hosts , path , data , request_options , timeout ):
59- # type: (str, list, int , str, Optional[Union[dict, list]], RequestOptions, int) -> dict # noqa: E501
58+ # type: (str, List[Host] , str, Optional[Union[dict, list]], RequestOptions, int) -> dict # noqa: E501
6059
6160 if isinstance (data , dict ):
6261 data .update (request_options .data )
@@ -76,7 +75,7 @@ def request(self, verb, hosts, path, data, request_options, timeout):
7675 return self .retry (hosts , request , relative_url )
7776
7877 def retry (self , hosts , request , relative_url ):
79- # type: (list , Request, str) -> dict
78+ # type: (List[Host] , Request, str) -> dict
8079
8180 for host in self ._retry_strategy .valid_hosts (hosts ):
8281
0 commit comments