From 01fff2c7a9404c963800b2df43debb816ad89874 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sat, 18 May 2024 14:33:59 +0300 Subject: lint fix --- kvmd/plugins/hid/spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3