refactor: 移除 BaseReader 中未使用的 supported_extensions 属性

从 BaseReader 抽象基类及所有 Reader 子类中移除 supported_extensions
属性,该属性在代码库中从未被实际调用,仅作为元数据存在。
This commit is contained in:
2026-03-08 22:56:32 +08:00
parent 7eab1dcef1
commit 09904aefdc
6 changed files with 0 additions and 26 deletions

View File

@@ -27,10 +27,6 @@ PARSERS = [
class DocxReader(BaseReader):
"""DOCX 文件阅读器"""
@property
def supported_extensions(self) -> List[str]:
return [".docx"]
def supports(self, file_path: str) -> bool:
return file_path.lower().endswith('.docx')