mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
refactoring
This commit is contained in:
parent
02fa3fa65d
commit
caf1a89ec6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user