fix: auto-fix code issues (cron)

- 修复重复导入/字段
- 修复异常处理
- 修复PEP8格式问题
- 添加类型注解
This commit is contained in:
OpenClaw Bot
2026-02-27 18:09:24 +08:00
parent 646b64daf7
commit 17bda3dbce
38 changed files with 1993 additions and 1972 deletions

View File

@@ -4,9 +4,8 @@ Document Processor - Phase 3
支持 PDF 和 DOCX 文档导入
"""
import os
import io
from typing import Dict
import os
class DocumentProcessor:
@@ -21,7 +20,7 @@ class DocumentProcessor:
".md": self._extract_txt,
}
def process(self, content: bytes, filename: str) -> Dict[str, str]:
def process(self, content: bytes, filename: str) -> dict[str, str]:
"""
处理文档并提取文本