summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-11 08:06:44 +0300
committerDevaev Maxim <[email protected]>2020-05-11 08:06:44 +0300
commit98a176f7408350741f89547ea6d1d6e519965cbf (patch)
tree872a8f1c288975c118e0384e44973c944ea5b1f2 /kvmd/plugins/msd/__init__.py
parent60b6c219d91addfd79a30cfa9c20b398eb3391ae (diff)
lint fixes
Diffstat (limited to 'kvmd/plugins/msd/__init__.py')
-rw-r--r--kvmd/plugins/msd/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py
index 95c0f0d0..6edc6ecb 100644
--- a/kvmd/plugins/msd/__init__.py
+++ b/kvmd/plugins/msd/__init__.py
@@ -94,8 +94,7 @@ class BaseMsd(BasePlugin):
raise NotImplementedError()
async def poll_state(self) -> AsyncGenerator[Dict, None]:
- if True: # pylint: disable=using-constant-test
- # XXX: Vulture hack
+ if self is not None: # XXX: Vulture and pylint hack
raise NotImplementedError()
yield
@@ -117,9 +116,8 @@ class BaseMsd(BasePlugin):
raise NotImplementedError()
@contextlib.asynccontextmanager
- async def write_image(self, name: str) -> AsyncGenerator[None, None]:
- if True: # pylint: disable=using-constant-test
- # XXX: Vulture hack
+ async def write_image(self, name: str) -> AsyncGenerator[None, None]: # pylint: disable=unused-argument
+ if self is not None: # XXX: Vulture and pylint hack
raise NotImplementedError()
yield