📝 添加字体原有版权声明

This commit is contained in:
snowy 2024-04-24 00:23:05 +08:00
parent 4a8ddaba2d
commit a38e2b887c
3 changed files with 4 additions and 1 deletions

View File

@ -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)提供的字体,且遵守了相关字体开源协议

View File

@ -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)

View File

@ -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