fix(types): preserve nullable qBittorrent deletion flag

This commit is contained in:
jxxghp
2026-10-17 06:19:36 +08:00
parent 6e84d4d2e1
commit a89b999c2e

View File

@@ -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:
"""
删除种子
"""