sprint1 refactor

This commit is contained in:
2024-01-14 22:36:05 +03:00
parent 70c5ff480d
commit 081b32a139
4 changed files with 95 additions and 40 deletions

View File

@@ -24,7 +24,7 @@ class Device(ABC):
"""
@abstractmethod
def _connect_and_read(self) -> Any:
def connect_and_read(self) -> Any:
"""Реализуется физическое подключение к прибору, и считывание данных"""
raise NotImplementedError
@@ -59,7 +59,7 @@ class Inverter(Device):
self.port: str = "COM_port"
self.__dict__.update(kwargs)
def _connect_and_read(self) -> str:
def connect_and_read(self) -> str:
"""Подключение к прибору
Реализует подключение к прибору и считывает поток данных
в виде строки.