updated pyi to reflect the changes in socketio upstream
This commit is contained in:
parent
3c447261b1
commit
a983c74de8
2 changed files with 7 additions and 12 deletions
|
@ -1,5 +0,0 @@
|
|||
S3Video
|
||||
==
|
||||
|
||||
.. automodule:: syng.sources.s3-video
|
||||
:members:
|
14
socketio.pyi
14
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]: ...
|
||||
|
|
Loading…
Add table
Reference in a new issue