@@ -2,7 +2,7 @@ from collections.abc import Awaitable, Callable, Mapping, Sequence
22from contextlib import AbstractAsyncContextManager , AbstractContextManager
33from threading import Event as ThreadingEvent
44from types import ModuleType
5- from typing import Any , Concatenate , Literal , TypeAlias , overload
5+ from typing import Any , ClassVar , Concatenate , Literal , TypeAlias , overload
66
77import engineio
88from _typeshed import Incomplete
@@ -13,6 +13,7 @@ from engineio.async_drivers.threading import DaemonThread
1313from engineio .socket import Socket
1414from gevent .event import Event as GeventEvent
1515from socketio .admin import InstrumentedServer
16+ from socketio .msgpack_packet import MsgPackPacket
1617from socketio .server import Server
1718from typing_extensions import NotRequired , Required , TypedDict
1819
@@ -208,6 +209,10 @@ class JsonModule(ModuleType):
208209 @staticmethod
209210 def loads (s : str | bytes | bytearray , ** kwargs : Any ) -> Any : ...
210211
212+ class CustomMsgPackPacket (MsgPackPacket ):
213+ dumps_default : ClassVar [Callable [[Any ], Any ] | None ]
214+ ext_hook : ClassVar [Callable [[int , bytes ], Any ]]
215+
211216## handlers
212217
213218ServerConnectHandler : TypeAlias = Callable [[str , dict [str , Any ]], Any ]
0 commit comments