summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-13 14:55:08 +0300
committerDevaev Maxim <[email protected]>2020-10-13 14:55:08 +0300
commit6420bc4533490af85a33d026c120d28a7f55a044 (patch)
tree6b787e07eef6d5de3a2b6058d70615eabb0a97c0 /kvmd/plugins/msd/otg
parentc6524fc7ac3a271a91fef994a9a9529940337596 (diff)
mypy again
Diffstat (limited to 'kvmd/plugins/msd/otg')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index ef925065..f55dcb42 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -306,7 +306,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
await self.__remount_storage(rw=True)
self.__set_image_complete(name, False)
self.__new_file_written = 0
- self.__new_file = await aiofiles.open(path, mode="w+b", buffering=0)
+ self.__new_file = await aiofiles.open(path, mode="w+b", buffering=0) # type: ignore
await self.__notifier.notify()
yield
@@ -364,7 +364,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
try:
if self.__new_file:
get_logger().info("Closing new image file ...")
- await self.__new_file.close()
+ await self.__new_file.close() # type: ignore
except Exception:
get_logger().exception("Can't close device file")
finally: