stable/freqtrade/rpc/api_server/ws/types.py
Timothy Pogue b1c0267449 mypy fixes
2022-09-06 12:40:58 -06:00

9 lines
257 B
Python

from typing import Any, Dict, TypeVar
from fastapi import WebSocket as FastAPIWebSocket
from websockets.client import WebSocketClientProtocol as WebSocket
WebSocketType = TypeVar("WebSocketType", FastAPIWebSocket, WebSocket)
MessageType = Dict[str, Any]