Type stubs for the python-socketio library.
Note
This package provides type hints only and contains no runtime code.
For the actual runtime implementation, install python-socketio.
pip install python-socketio-stubsOnce installed, type checkers will automatically discover and use these stubs when analyzing code that uses python-socketio:
fromtypingimportAny, assert_typeimportsocketio# Your type checker will now understand python-socketio's typessio=socketio.Server()
@sio.eventdefconnect(sid: str, environ: dict[str, Any], auth: dict[str, Any] |None) ->None:
session=sio.get_session(sid)
assert_type(session, dict[str, Any])MIT - see LICENSE for details.