From a983c74de8f1f6cf5fa62b0447400425dfe7bf96 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Wed, 1 Nov 2023 13:01:34 +0100 Subject: [PATCH] updated pyi to reflect the changes in socketio upstream --- docs/source/s3-video.rst | 5 ----- socketio.pyi | 14 +++++++------- 2 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 docs/source/s3-video.rst diff --git a/docs/source/s3-video.rst b/docs/source/s3-video.rst deleted file mode 100644 index c97eac0..0000000 --- a/docs/source/s3-video.rst +++ /dev/null @@ -1,5 +0,0 @@ -S3Video -== - -.. automodule:: syng.sources.s3-video - :members: diff --git a/socketio.pyi b/socketio.pyi index a1ef569..36f7385 100644 --- a/socketio.pyi +++ b/socketio.pyi @@ -12,17 +12,18 @@ ClientHandler = TypeVar( "ClientHandler", bound=Callable[[dict[str, Any]], Any] | Callable[[], Any] ) - class _session_context_manager: async def __aenter__(self) -> dict[str, Any]: ... async def __aexit__(self, *args: list[Any]) -> None: ... - class AsyncServer: def __init__( - self, cors_allowed_origins: str, logger: bool, engineio_logger: bool, json: Any + self, + cors_allowed_origins: str, + logger: bool, + engineio_logger: bool, + json: Any, ): ... - async def emit( self, message: str, @@ -31,12 +32,11 @@ class AsyncServer: ) -> None: ... def session(self, sid: str) -> _session_context_manager: ... def on(self, event: str) -> Callable[[Handler], Handler]: ... - def enter_room(self, sid: str, room: str) -> None: ... - def leave_room(self, sid: str, room: str) -> None: ... + async def enter_room(self, sid: str, room: str) -> None: ... + async def leave_room(self, sid: str, room: str) -> None: ... def attach(self, app: Any) -> None: ... async def disconnect(self, sid: str) -> None: ... - class AsyncClient: def __init__(self, json: Any = None): ... def on(self, event: str) -> Callable[[ClientHandler], ClientHandler]: ...