Skip to content

Commit ebb5053

Browse files
committed
fixes
1 parent e0aaf0f commit ebb5053

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/elevenlabs/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767

6868
@property
6969
def speech_engine(self) -> SpeechEngineClient:
70-
return self._speech_engine
70+
return typing.cast(SpeechEngineClient, self._speech_engine)
7171

7272

7373
class AsyncElevenLabs(AsyncBaseElevenLabs):
@@ -117,4 +117,4 @@ def __init__(
117117

118118
@property
119119
def speech_engine(self) -> AsyncSpeechEngineClient:
120-
return self._speech_engine
120+
return typing.cast(AsyncSpeechEngineClient, self._speech_engine)

src/elevenlabs/speech_engine_custom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import typing
22

3+
from .core import RequestOptions
34
from .speech_engine.client import AsyncSpeechEngineClient as AutogeneratedAsyncSpeechEngineClient
45
from .speech_engine.client import SpeechEngineClient as AutogeneratedSpeechEngineClient
56
from .speech_engine.resource import SpeechEngineResource
6-
from .core import RequestOptions
77

88

99
class SpeechEngineClient(AutogeneratedSpeechEngineClient):
@@ -26,7 +26,7 @@ def get( # type: ignore[override]
2626
super().get(speech_engine_id, request_options=request_options)
2727
return SpeechEngineResource(
2828
engine_id=speech_engine_id,
29-
client_wrapper=self._client_wrapper,
29+
client_wrapper=self._raw_client._client_wrapper,
3030
)
3131

3232

@@ -50,5 +50,5 @@ async def get( # type: ignore[override]
5050
await super().get(speech_engine_id, request_options=request_options)
5151
return SpeechEngineResource(
5252
engine_id=speech_engine_id,
53-
client_wrapper=self._client_wrapper,
53+
client_wrapper=self._raw_client._client_wrapper,
5454
)

0 commit comments

Comments
 (0)