@@ -304,6 +304,8 @@ class BaseClient:
304304 max_retries : int
305305 timeout : Union [float , Timeout , None ]
306306 _limits : httpx .Limits
307+ _proxies : ProxiesTypes | None
308+ _transport : Transport | None
307309 _strict_response_validation : bool
308310 _idempotency_header : str | None
309311
@@ -315,13 +317,17 @@ def __init__(
315317 max_retries : int = DEFAULT_MAX_RETRIES ,
316318 timeout : float | Timeout | None = DEFAULT_TIMEOUT ,
317319 limits : httpx .Limits ,
320+ transport : Transport | None ,
321+ proxies : ProxiesTypes | None ,
318322 custom_headers : Mapping [str , str ] | None = None ,
319323 custom_query : Mapping [str , object ] | None = None ,
320324 ) -> None :
321325 self ._version = version
322326 self .max_retries = max_retries
323327 self .timeout = timeout
324328 self ._limits = limits
329+ self ._proxies = proxies
330+ self ._transport = transport
325331 self ._custom_headers = custom_headers or {}
326332 self ._custom_query = custom_query or {}
327333 self ._strict_response_validation = _strict_response_validation
@@ -590,6 +596,11 @@ def user_agent(self) -> str:
590596 def base_url (self ) -> URL :
591597 return self ._client .base_url
592598
599+ @base_url .setter
600+ def base_url (self , url : URL | str ) -> None :
601+ # mypy doesn't use the type from the setter
602+ self ._client .base_url = url # type: ignore[assignment]
603+
593604 @lru_cache (maxsize = None )
594605 def platform_headers (self ) -> Dict [str , str ]:
595606 return {
@@ -689,6 +700,8 @@ def __init__(
689700 version = version ,
690701 limits = limits ,
691702 timeout = timeout ,
703+ proxies = proxies ,
704+ transport = transport ,
692705 max_retries = max_retries ,
693706 custom_query = custom_query ,
694707 custom_headers = custom_headers ,
@@ -1045,6 +1058,8 @@ def __init__(
10451058 version = version ,
10461059 limits = limits ,
10471060 timeout = timeout ,
1061+ proxies = proxies ,
1062+ transport = transport ,
10481063 max_retries = max_retries ,
10491064 custom_query = custom_query ,
10501065 custom_headers = custom_headers ,
0 commit comments