From 9360fe9f3c600cd7c610e8fd6e2d80f91a8c341f Mon Sep 17 00:00:00 2001 From: Artur Borecki Date: Thu, 5 Mar 2026 22:08:53 +0100 Subject: [PATCH] feat(connector.py): add `self.client` property --- src/judas_client/connector.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/judas_client/connector.py b/src/judas_client/connector.py index 858d56e..04e564e 100644 --- a/src/judas_client/connector.py +++ b/src/judas_client/connector.py @@ -5,16 +5,20 @@ import logging as lg import selectors import socket import time -from typing import Callable +from typing import Callable, TYPE_CHECKING from judas_protocol import Category, ControlAction, Message +if TYPE_CHECKING: + from judas_client.client import Client + class Connector: """Connector class for managing TCP connection and message exchange.""" def __init__( self, + client: Client, mac_address: str, host: str, port: int, @@ -34,6 +38,8 @@ class Connector: ) self.logger.debug("Initializing Connector...") + self.client: Client = client + self.host: str = host self.port: int = port