summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-08 21:39:09 +0300
committerMaxim Devaev <[email protected]>2022-11-08 21:39:09 +0300
commit4c6511491e840de7b26e8abd9170e9eea8c7a27f (patch)
tree1e0659834ca87cb2ed7dfaba8fefb4635009e206 /kvmd
parentd703ed0f007050a4c672abcae8a6feb4ee576ae2 (diff)
lint fix
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/ugpio/hidrelay.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/plugins/ugpio/hidrelay.py b/kvmd/plugins/ugpio/hidrelay.py
index 0606c85f..4e9513c3 100644
--- a/kvmd/plugins/ugpio/hidrelay.py
+++ b/kvmd/plugins/ugpio/hidrelay.py
@@ -64,7 +64,7 @@ class Plugin(BaseUserGpioDriver):
self.__device_path = device_path
self.__state_poll = state_poll
- self.__device: (hid.device | None) = None
+ self.__device: (hid.device | None) = None # type: ignore
self.__stop = False
self.__initials: dict[int, (bool | None)] = {}
@@ -158,10 +158,10 @@ class Plugin(BaseUserGpioDriver):
raise RuntimeError(f"Retval of send_feature_report() < 0: {result}")
@contextlib.contextmanager
- def __ensure_device(self, context: str) -> hid.device:
+ def __ensure_device(self, context: str) -> hid.device: # type: ignore
assert not self.__stop
if self.__device is None:
- device = hid.device()
+ device = hid.device() # type: ignore
device.open_path(self.__device_path.encode("utf-8"))
device.set_nonblocking(True)
self.__device = device