summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/disabled.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/msd/disabled.py')
-rw-r--r--kvmd/plugins/msd/disabled.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/kvmd/plugins/msd/disabled.py b/kvmd/plugins/msd/disabled.py
index 3a8c1b2e..5317fb09 100644
--- a/kvmd/plugins/msd/disabled.py
+++ b/kvmd/plugins/msd/disabled.py
@@ -29,6 +29,7 @@ from typing import Optional
from ... import aiotools
from . import MsdOperationError
+from . import BaseMsdReader
from . import BaseMsd
@@ -77,13 +78,10 @@ class Plugin(BaseMsd):
raise MsdDisabledError()
@contextlib.asynccontextmanager
- async def read_image(self, name: str) -> AsyncGenerator[int, None]:
+ async def read_image(self, name: str) -> AsyncGenerator[BaseMsdReader, None]:
if self is not None: # XXX: Vulture and pylint hack
raise MsdDisabledError()
- yield 1
-
- async def read_image_chunk(self) -> bytes:
- raise MsdDisabledError()
+ yield BaseMsdReader()
@contextlib.asynccontextmanager
async def write_image(self, name: str, size: int, remove_incomplete: Optional[bool]) -> AsyncGenerator[int, None]: