updated pyi to reflect the changes in socketio upstream

This commit is contained in:
Christoph Stahl 2023-11-01 13:01:34 +01:00
parent 3c447261b1
commit a983c74de8
2 changed files with 7 additions and 12 deletions

View file

@ -1,5 +0,0 @@
S3Video
==
.. automodule:: syng.sources.s3-video
:members:

View file

@ -12,17 +12,18 @@ ClientHandler = TypeVar(
"ClientHandler", bound=Callable[[dict[str, Any]], Any] | Callable[[], Any] "ClientHandler", bound=Callable[[dict[str, Any]], Any] | Callable[[], Any]
) )
class _session_context_manager: class _session_context_manager:
async def __aenter__(self) -> dict[str, Any]: ... async def __aenter__(self) -> dict[str, Any]: ...
async def __aexit__(self, *args: list[Any]) -> None: ... async def __aexit__(self, *args: list[Any]) -> None: ...
class AsyncServer: class AsyncServer:
def __init__( 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( async def emit(
self, self,
message: str, message: str,
@ -31,12 +32,11 @@ class AsyncServer:
) -> None: ... ) -> None: ...
def session(self, sid: str) -> _session_context_manager: ... def session(self, sid: str) -> _session_context_manager: ...
def on(self, event: str) -> Callable[[Handler], Handler]: ... def on(self, event: str) -> Callable[[Handler], Handler]: ...
def enter_room(self, sid: str, room: str) -> None: ... async def enter_room(self, sid: str, room: str) -> None: ...
def leave_room(self, sid: str, room: str) -> None: ... async def leave_room(self, sid: str, room: str) -> None: ...
def attach(self, app: Any) -> None: ... def attach(self, app: Any) -> None: ...
async def disconnect(self, sid: str) -> None: ... async def disconnect(self, sid: str) -> None: ...
class AsyncClient: class AsyncClient:
def __init__(self, json: Any = None): ... def __init__(self, json: Any = None): ...
def on(self, event: str) -> Callable[[ClientHandler], ClientHandler]: ... def on(self, event: str) -> Callable[[ClientHandler], ClientHandler]: ...