Coverage for src/zapy/api/deps/socketio.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-10 19:35 +0000

1from typing import Annotated 

2 

3import socketio 

4from fastapi import Depends 

5 

6sio = socketio.AsyncServer(async_mode="asgi") 

7 

8 

9def get_sio() -> socketio.AsyncServer: 

10 return sio 

11 

12 

13SocketIO = Annotated[socketio.AsyncServer, Depends(get_sio)]