feat(deps): 新增 uv 的 pyproject.toml 进行依赖管理

This commit is contained in:
2025-11-20 20:07:05 +08:00
parent 8df851bc0c
commit cee637c59a
2 changed files with 20 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ import random
import ddddocr
from datetime import datetime
from dotenv import load_dotenv
from lxml import etree
from lxml import etree # type: ignore
from threading import Thread
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
@@ -29,7 +29,7 @@ import warnings
# 修复 ANTIALIAS 错误 - 添加猴子补丁
import PIL.Image
if not hasattr(PIL.Image, 'ANTIALIAS'):
PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS
PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore
warnings.filterwarnings("ignore")