lint fixes

This commit is contained in:
Maxim Devaev
2025-05-17 22:56:22 +03:00
parent 791e047a6b
commit 47614a5724
4 changed files with 14 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ class Gpio: # pylint: disable=too-many-instance-attributes
self.__line_req = gpiod.request_lines(
self.__device_path,
consumer="kvmd::hid",
config=config,
config=config, # type: ignore
)
def __exit__(

View File

@@ -153,7 +153,7 @@ class _SpiPhy(BasePhy): # pylint: disable=too-many-instance-attributes
)
@contextlib.contextmanager
def __sw_cs_connected(self) -> Generator[(Callable[[bool], bool] | None), None, None]:
def __sw_cs_connected(self) -> Generator[(Callable[[bool], None] | None), None, None]:
if self.__sw_cs_pin > 0:
with gpiod.request_lines(
self.__gpio_device_path,