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:
@@ -74,8 +74,7 @@ class Plugin(BaseMsd):
|
||||
|
||||
@contextlib.asynccontextmanager
|
||||
async def write_image(self, name: str) -> AsyncGenerator[None, None]:
|
||||
if True: # pylint: disable=using-constant-test
|
||||
# XXX: Vulture hack
|
||||
if self is not None: # XXX: Vulture and pylint hack
|
||||
raise MsdDisabledError()
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user