diff options
author | Maxim Devaev <[email protected]> | 2024-05-18 14:33:59 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-19 15:25:14 +0300 |
commit | 53c2d253f2c2a57b78c138b1682eba78e588f584 (patch) | |
tree | 13c84c3158273547095b3373a02dc33ce5282524 | |
parent | b2c91628452f69f13f73a32c06d026498cf09cca (diff) |
lint fix
-rw-r--r-- | kvmd/plugins/hid/spi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/spi.py b/kvmd/plugins/hid/spi.py index 70ad120b..278e68e1 100644 --- a/kvmd/plugins/hid/spi.py +++ b/kvmd/plugins/hid/spi.py @@ -120,7 +120,7 @@ class _SpiPhy(BasePhy): # pylint: disable=too-many-instance-attributes return os.path.exists(f"/dev/spidev{self.__bus}.{self.__chip}") @contextlib.contextmanager - def connected(self) -> Generator[_SpiPhyConnection, None, None]: # type: ignore + def connected(self) -> Generator[_SpiPhyConnection, None, None]: # pylint: disable=contextmanager-generator-missing-cleanup # type: ignore with self.__sw_cs_connected() as switch_cs: with contextlib.closing(spidev.SpiDev(self.__bus, self.__chip)) as spi: spi.mode = 0 |