From 7e69ef302cc754e67af8daaddb1a1dd75aef46b7 Mon Sep 17 00:00:00 2001 From: Martastain Date: Fri, 20 Sep 2024 16:13:50 +0200 Subject: [PATCH] chore: silence mypy /w aioshutil --- api/addons/delete_addon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/addons/delete_addon.py b/api/addons/delete_addon.py index accfb064..0fc182dc 100644 --- a/api/addons/delete_addon.py +++ b/api/addons/delete_addon.py @@ -30,7 +30,7 @@ async def delete_addon_directory(addon_name: str, addon_version: str | None = No version_dir = addon.addon_dir try: - await aioshutil.rmtree(version_dir) + await aioshutil.rmtree(version_dir) # type: ignore except Exception as e: raise AyonException( f"Failed to delete {addon_name} {addon_version} directory: {e}" @@ -41,7 +41,7 @@ async def delete_addon_directory(addon_name: str, addon_version: str | None = No if (addon_version is None) or is_empty: try: - await aioshutil.rmtree(addon_dir) + await aioshutil.rmtree(addon_dir) # type: ignore except Exception as e: raise AyonException(f"Failed to delete {addon_name} directory: {e}") library.data.pop(addon_name, None)