add more type annotations

This commit is contained in:
Stefan Allius
2024-06-08 23:33:25 +02:00
parent 9985917ad2
commit a499c5e6b0

View File

@@ -59,7 +59,7 @@ class Message(metaclass=IterRegistry):
STATE_CLOSED = 3
def __init__(self, server_side: bool, send_modbus_cb:
Callable[[bytes, int, str], None], mb_timeout):
Callable[[bytes, int, str], None], mb_timeout: int):
self._registry.append(weakref.ref(self))
self.server_side = server_side