From a89b999c2ee79b98c859f52673db967df926a6c3 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 06:19:36 +0800 Subject: [PATCH] fix(types): preserve nullable qBittorrent deletion flag --- app/modules/qbittorrent/qbittorrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/qbittorrent/qbittorrent.py b/app/modules/qbittorrent/qbittorrent.py index d874e09af..1e7eb464c 100644 --- a/app/modules/qbittorrent/qbittorrent.py +++ b/app/modules/qbittorrent/qbittorrent.py @@ -572,7 +572,7 @@ class Qbittorrent: logger.error(f"暂停种子出错:{str(err)}") return False - def delete_torrents(self, delete_file: bool, ids: Union[str, list[str]]) -> bool: + def delete_torrents(self, delete_file: Optional[bool], ids: Union[str, list[str]]) -> bool: """ 删除种子 """