mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
lint fixes
This commit is contained in:
@@ -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__(
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user