mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
lint fix
This commit is contained in:
parent
d703ed0f00
commit
4c6511491e
@ -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
|
||||
|
||||
@ -11,6 +11,9 @@ RUN pacman --noconfirm --ask=4 -Syy \
|
||||
&& pacman --needed --noconfirm --ask=4 -S \
|
||||
glibc \
|
||||
pacman \
|
||||
openssl \
|
||||
openssl-1.0 \
|
||||
openssl-1.1 \
|
||||
&& pacman-db-upgrade \
|
||||
&& pacman --noconfirm --ask=4 -Syu \
|
||||
&& pacman --needed --noconfirm --ask=4 -S \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user