Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

phi-friday/python-socketio-stubs

Open more actions menu

Repository files navigation

python-socketio-stubs

License: MIT PyPI version python 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:

from typing import Any, assert_type

import socketio

# Your type checker will now understand python-socketio's types
sio = socketio.Server()

@sio.event
def connect(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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.