77
88
99class BaseClientWrapper :
10- def __init__ (self , * , api_key : str , base_url : str , timeout : typing .Optional [float ] = None ):
10+ def __init__ (
11+ self , * , api_key : str , base_url : str , timeout : typing .Optional [float ] = None
12+ ):
1113 self .api_key = api_key
1214 self ._base_url = base_url
1315 self ._timeout = timeout
@@ -16,7 +18,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1618 headers : typing .Dict [str , str ] = {
1719 "X-Fern-Language" : "Python" ,
1820 "X-Fern-SDK-Name" : "scrapybara" ,
19- "X-Fern-SDK-Version" : "2.1.1 " ,
21+ "X-Fern-SDK-Version" : "2.1.2 " ,
2022 }
2123 headers ["x-api-key" ] = self .api_key
2224 return headers
@@ -30,7 +32,12 @@ def get_timeout(self) -> typing.Optional[float]:
3032
3133class SyncClientWrapper (BaseClientWrapper ):
3234 def __init__ (
33- self , * , api_key : str , base_url : str , timeout : typing .Optional [float ] = None , httpx_client : httpx .Client
35+ self ,
36+ * ,
37+ api_key : str ,
38+ base_url : str ,
39+ timeout : typing .Optional [float ] = None ,
40+ httpx_client : httpx .Client
3441 ):
3542 super ().__init__ (api_key = api_key , base_url = base_url , timeout = timeout )
3643 self .httpx_client = HttpClient (
@@ -43,7 +50,12 @@ def __init__(
4350
4451class AsyncClientWrapper (BaseClientWrapper ):
4552 def __init__ (
46- self , * , api_key : str , base_url : str , timeout : typing .Optional [float ] = None , httpx_client : httpx .AsyncClient
53+ self ,
54+ * ,
55+ api_key : str ,
56+ base_url : str ,
57+ timeout : typing .Optional [float ] = None ,
58+ httpx_client : httpx .AsyncClient
4759 ):
4860 super ().__init__ (api_key = api_key , base_url = base_url , timeout = timeout )
4961 self .httpx_client = AsyncHttpClient (
0 commit comments