Upgrade to Mypy 1.3.0 (old: 0.991). Fix compatibility problems with Mypy. Add type hints to bfxapi.websocket.handlers.

This commit is contained in:
Davide Casale
2023-05-19 22:13:15 +02:00
parent 57680abd06
commit c8290f144b
7 changed files with 161 additions and 133 deletions

View File

@@ -62,7 +62,7 @@ class BfxWebSocketBucket:
if isinstance(message, list):
if (chan_id := message[0]) and message[1] != _HEARTBEAT:
self.handler.handle(self.subscriptions[chan_id], *message[1:])
self.handler.handle(self.subscriptions[chan_id], message[1:])
try:
await _connection()