Skip to content

Commit 0cccb2a

Browse files
committed
add annotations to init methods
1 parent d9b5dfb commit 0cccb2a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/elevenlabs/conversational_ai/conversation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from concurrent.futures import ThreadPoolExecutor
88
from enum import Enum
99

10-
from websockets.sync.client import connect, ClientConnection
10+
from websockets.sync.client import connect, Connection
1111
from websockets.exceptions import ConnectionClosedOK
1212

1313
from ..base_client import BaseElevenLabs
@@ -44,7 +44,7 @@ def to_dict(self) -> dict:
4444
class UserActivityClientToOrchestratorEvent:
4545
"""Event for registering user activity (ping to prevent timeout)."""
4646

47-
def __init__(self):
47+
def __init__(self) -> None:
4848
self.type: Literal[ClientToOrchestratorEvent.USER_ACTIVITY] = ClientToOrchestratorEvent.USER_ACTIVITY
4949

5050
def to_dict(self) -> dict:
@@ -118,7 +118,7 @@ class ClientTools:
118118
ensuring non-blocking operation of the main conversation thread.
119119
"""
120120

121-
def __init__(self):
121+
def __init__(self) -> None:
122122
self.tools: dict[str, tuple[Union[Callable[[dict], Any], Callable[[dict], Awaitable[Any]]], bool]] = {}
123123
self.lock = threading.Lock()
124124
self._loop = None
@@ -248,7 +248,7 @@ class Conversation:
248248
_should_stop: threading.Event
249249
_conversation_id: Optional[str]
250250
_last_interrupt_id: int
251-
_ws: Optional[ClientConnection]
251+
_ws: Optional[Connection]
252252

253253
def __init__(
254254
self,

0 commit comments

Comments
 (0)