refactor: 移除 BaseReader 中未使用的 supported_extensions 属性
从 BaseReader 抽象基类及所有 Reader 子类中移除 supported_extensions 属性,该属性在代码库中从未被实际调用,仅作为元数据存在。
This commit is contained in:
@@ -8,12 +8,6 @@ from typing import List, Optional, Tuple
|
||||
class BaseReader(ABC):
|
||||
"""文档阅读器基类。"""
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def supported_extensions(self) -> List[str]:
|
||||
"""返回支持的文件扩展名列表(如 ['.docx', '.doc'])。"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def supports(self, file_path: str) -> bool:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user