Skip to content

Commit

Permalink
Types
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 18, 2024
1 parent 5c1ff55 commit 490229d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def emit(self, schema_id: str, data: dict) -> None:


class Websocket:
def __init__(self, websocket, path: str):
def __init__(self, websocket: Any, path: str):
self._websocket = websocket
self._path = path
self._send_lock = Lock()
Expand All @@ -78,7 +78,7 @@ async def __anext__(self) -> bytes:
raise StopAsyncIteration()
return message

async def send(self, message: bytes):
async def send(self, message: bytes) -> None:
async with self._send_lock:
await self._websocket.send_bytes(message)

Expand Down

0 comments on commit 490229d

Please sign in to comment.