Skip to content

Repository files navigation

python-socketio-stubs

License: MITPyPI versionpython version

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.

Installation

pip install python-socketio-stubs

Usage

Once 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])

License

MIT - see LICENSE for details.

About

python-socketio stubs

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages