From a38e2b887cdf79a41dc9c4f644eedc5d1546898a Mon Sep 17 00:00:00 2001 From: snowy Date: Wed, 24 Apr 2024 00:23:05 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=B7=BB=E5=8A=A0=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=8E=9F=E6=9C=89=E7=89=88=E6=9D=83=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/deployment/fandq.md | 1 + liteyuki/utils/base/data.py | 3 ++- requirements.txt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/deployment/fandq.md b/docs/deployment/fandq.md index 4ef6d64d..13d7d020 100644 --- a/docs/deployment/fandq.md +++ b/docs/deployment/fandq.md @@ -55,3 +55,4 @@ tag: - [Nonebot2](https://nonebot.dev)提供的框架支持 - [nonebot-plugin-htmlrender](https://github.com/kexue-z/nonebot-plugin-htmlrender/tree/master)提供的渲染功能 - [nonebot-plugin-alconna](https://github.com/ArcletProject/nonebot-plugin-alconna)提供的命令解析功能 +- [MiSans](https://hyperos.mi.com/font/zh/),[MapleMono](https://gitee.com/mirrors/Maple-Mono)提供的字体,且遵守了相关字体开源协议 diff --git a/liteyuki/utils/base/data.py b/liteyuki/utils/base/data.py index 7c99a8eb..abca80ac 100644 --- a/liteyuki/utils/base/data.py +++ b/liteyuki/utils/base/data.py @@ -3,6 +3,7 @@ import pickle import sqlite3 from types import NoneType from typing import Any +from packaging.version import parse import nonebot import pydantic @@ -14,7 +15,7 @@ class LiteModel(BaseModel): id: int = None def dump(self, *args, **kwargs): - if pydantic.__version__ < "1.8.2": + if parse(pydantic.__version__) < parse("2.0.0"): return self.dict(*args, **kwargs) else: return self.model_dump(*args, **kwargs) diff --git a/requirements.txt b/requirements.txt index 006f13e6..d593ac3a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,6 +11,7 @@ nonebot-plugin-htmlrender==0.3.1 nonebot-adapter-onebot==2.4.3 nonebot-plugin-alconna==0.43.0 nonebot_plugin_apscheduler==0.4.0 +packaging==21.4 playwright==1.17.2 psutil==5.9.8 py-cpuinfo==9.0.0