summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-29 22:14:02 +0300
committerMaxim Devaev <[email protected]>2022-07-29 22:14:02 +0300
commitcaf1a89ec64d3441b79b6e0ae8d59fdadfbb68a8 (patch)
treea9282f47d4c06524d81b2bd963b7cf1ddbf40da6
parent02fa3fa65d0a91e72dd172c65d0af6313df4c161 (diff)
refactoring
-rw-r--r--kvmd/plugins/hid/otg/device.py3
-rw-r--r--kvmd/plugins/msd/__init__.py7
2 files changed, 7 insertions, 3 deletions
diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py
index ce51aacd..2dc11d6c 100644
--- a/kvmd/plugins/hid/otg/device.py
+++ b/kvmd/plugins/hid/otg/device.py
@@ -130,7 +130,8 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
# =====
- def _process_event(self, event: BaseEvent) -> Generator[bytes, None, None]: # pylint: disable=unused-argument
+ def _process_event(self, event: BaseEvent) -> Generator[bytes, None, None]:
+ _ = event
if self is not None: # XXX: Vulture and pylint hack
raise NotImplementedError()
yield
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py
index 9f120919..f992d647 100644
--- a/kvmd/plugins/msd/__init__.py
+++ b/kvmd/plugins/msd/__init__.py
@@ -134,7 +134,8 @@ class BaseMsd(BasePlugin):
raise NotImplementedError()
@contextlib.asynccontextmanager
- async def read_image(self, name: str) -> AsyncGenerator[int, None]: # pylint: disable=unused-argument
+ async def read_image(self, name: str) -> AsyncGenerator[int, None]:
+ _ = name
if self is not None: # XXX: Vulture and pylint hack
raise NotImplementedError()
yield 1
@@ -143,7 +144,9 @@ class BaseMsd(BasePlugin):
raise NotImplementedError()
@contextlib.asynccontextmanager
- async def write_image(self, name: str, size: int) -> AsyncGenerator[int, None]: # pylint: disable=unused-argument
+ async def write_image(self, name: str, size: int) -> AsyncGenerator[int, None]:
+ _ = name
+ _ = size
if self is not None: # XXX: Vulture and pylint hack
raise NotImplementedError()
yield 1