nonebot / adapter-satori

NoneBot2 Satori 适配器 / Satori Protocol adapter for nonebot2
MIT License
84 stars 5 forks source link

[Bug]: pydantic 版本为1.10.14 启动时报错 #26

Closed yaowan233 closed 5 months ago

yaowan233 commented 5 months ago

确认项

操作系统

Windows

Python 版本

3.10.4

NoneBot 版本

2.3.0

适配器

0.12.2

协议端

Chronocat

描述问题

pydantic 版本是1.10.14 启动时发生报错 升级到 PYDANTIC_V2 后不发生报错

Traceback (most recent call last):
  File "C:\bot\miyuki\bot.py", line 7, in <module>
    from nonebot.adapters.satori import Adapter as SATORIAdapter
  File "C:\bot\miyuki\venv\lib\site-packages\nonebot\adapters\satori\__init__.py", line 1, in <module>
    from .bot import Bot as Bot
  File "C:\bot\miyuki\venv\lib\site-packages\nonebot\adapters\satori\bot.py", line 145, in <module>
    class Bot(BaseBot):
  File "C:\bot\miyuki\venv\lib\site-packages\nonebot\adapters\satori\bot.py", line 365, in Bot
    ) -> PageDequeResult[SatoriMessage]:
  File "C:\bot\miyuki\venv\lib\site-packages\pydantic\generics.py", line 106, in __class_getitem__
    check_parameters_count(cls, params)
  File "C:\bot\miyuki\venv\lib\site-packages\pydantic\generics.py", line 338, in check_parameters_count
    raise TypeError(f'Too {description} parameters for {cls.__name__}; actual {actual}, expected {expected}')
TypeError: Too many parameters for PageDequeResult; actual 1, expected 0

复现步骤

启动初始化时报错

期望的结果

No response

截图或日志

No response

Nonebot 配置项

No response