@@ -50,8 +50,8 @@ def __init__(
5050 if not api_key :
5151 raise ValueError ("The Linkup API key was not provided" )
5252
53- self .__api_key = api_key
54- self .__base_url = base_url
53+ self ._api_key = api_key
54+ self ._base_url = base_url
5555
5656 def search (
5757 self ,
@@ -332,7 +332,7 @@ def _user_agent(self) -> str: # pragma: no cover
332332
333333 def _headers (self ) -> dict [str , str ]: # pragma: no cover
334334 return {
335- "Authorization" : f"Bearer { self .__api_key } " ,
335+ "Authorization" : f"Bearer { self ._api_key } " ,
336336 "User-Agent" : self ._user_agent (),
337337 }
338338
@@ -342,7 +342,7 @@ def _request(
342342 url : str ,
343343 ** kwargs : Any ,
344344 ) -> httpx .Response : # pragma: no cover
345- with httpx .Client (base_url = self .__base_url , headers = self ._headers ()) as client :
345+ with httpx .Client (base_url = self ._base_url , headers = self ._headers ()) as client :
346346 return client .request (
347347 method = method ,
348348 url = url ,
@@ -355,7 +355,7 @@ async def _async_request(
355355 url : str ,
356356 ** kwargs : Any ,
357357 ) -> httpx .Response : # pragma: no cover
358- async with httpx .AsyncClient (base_url = self .__base_url , headers = self ._headers ()) as client :
358+ async with httpx .AsyncClient (base_url = self ._base_url , headers = self ._headers ()) as client :
359359 return await client .request (
360360 method = method ,
361361 url = url ,
0 commit comments