From 0823f7aa48ac0da9d48d8f12f387ebc054abd170 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=A3=80=E6=9F=A5=E5=AD=97=E9=9D=A2?= =?UTF-8?q?=E9=87=8F=E9=9B=86=E5=90=88=E7=9A=84=E6=88=90=E5=91=98=E8=B5=84?= =?UTF-8?q?=E6=A0=BC=E6=97=B6=E4=BD=BF=E7=94=A8=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- astrbot/core/knowledge_base/parsers/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/knowledge_base/parsers/util.py b/astrbot/core/knowledge_base/parsers/util.py index e8252b912..41cc5e4de 100644 --- a/astrbot/core/knowledge_base/parsers/util.py +++ b/astrbot/core/knowledge_base/parsers/util.py @@ -2,7 +2,7 @@ from .base import BaseParser async def select_parser(ext: str) -> BaseParser: - if ext in [".md", ".txt", ".markdown", ".xlsx", ".docx", ".xls"]: + if ext in {".md", ".txt", ".markdown", ".xlsx", ".docx", ".xls"}: from .markitdown_parser import MarkitdownParser return MarkitdownParser()