Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloGiacco committed Feb 4, 2025
1 parent 323709f commit 7139e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elevenlabs/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(
follow_redirects: typing.Optional[bool] = True,
httpx_client: typing.Optional[httpx.Client] = None,
):
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else float(httpx_client.timeout)
self._client_wrapper = SyncClientWrapper(
base_url=_get_base_url(base_url=base_url, environment=environment),
api_key=api_key,
Expand Down Expand Up @@ -172,7 +172,7 @@ def __init__(
follow_redirects: typing.Optional[bool] = True,
httpx_client: typing.Optional[httpx.AsyncClient] = None,
):
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else float(httpx_client.timeout)
self._client_wrapper = AsyncClientWrapper(
base_url=_get_base_url(base_url=base_url, environment=environment),
api_key=api_key,
Expand Down

0 comments on commit 7139e2f

Please sign in to comment.