Skip to content

Commit 2648185

Browse files
committed
fix: AsyncServer init args
1 parent c479099 commit 2648185

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/socketio-stubs/async_server.pyi

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ from _typeshed import Incomplete
88
from aiohttp.web import Application as AiohttpApplication
99
from engineio.async_drivers.asgi import ASGIApp as EngineIOASGIApp
1010
from sanic import Sanic
11-
from socketio import base_server as base_server
12-
from socketio import exceptions as exceptions
13-
from socketio import packet as packet
1411
from socketio._types import (
1512
AsyncAsyncModeType,
1613
AsyncSessionContextManager,
@@ -21,6 +18,7 @@ from socketio._types import (
2118
from socketio.asgi import ASGIApp as SocketIOASGIApp
2219
from socketio.async_admin import InstrumentedAsyncServer
2320
from socketio.async_manager import AsyncManager
21+
from socketio.base_server import BaseServer
2422
from tornado.web import Application as TornadoApplication
2523
from typing_extensions import TypeVar
2624

@@ -30,15 +28,15 @@ _T = TypeVar("_T")
3028

3129
task_reference_holder: set[Any]
3230

33-
class AsyncServer(
34-
base_server.BaseServer[Literal[True], engineio.AsyncServer], Generic[_A]
35-
):
31+
class AsyncServer(BaseServer[Literal[True], engineio.AsyncServer], Generic[_A]):
3632
def __init__(
3733
self,
3834
client_manager: AsyncManager | None = ...,
3935
logger: logging.Logger | bool = ...,
36+
serializer: str = ...,
4037
json: Incomplete | None = ...,
4138
async_handlers: bool = ...,
39+
always_connect: bool = ...,
4240
namespaces: list[str] | None = ...,
4341
*,
4442
async_mode: _A = ...,

0 commit comments

Comments
 (0)