Closed QuickLAW closed 1 year ago
你的python版本是多少?
似乎是python3.8会有这个问题,发了个0.5.7尝试修了这个问题,你可以试一下(但是我没复现所以我也不知道修好了没)
你的python版本是多少?
首先十分感谢大佬,python版本为3.9.0,虽然即便是0.5.7版本也依旧存在相同的问题,但是有所改变,问题变到了第44行的代码
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\interface\service.py", line 5, in <module>
from .permission import IServicePermission
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\interface\permission.py", line 4, in <module>
from nonebot_plugin_access_control.event_bus import T_Listener
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\event_bus.py", line 44, in <module>
def _call_with_kwargs(func: Callable[[...], T], kwargs: T_Kwargs) -> T:
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 829, in __getitem__
return self.__getitem_inner__(params)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 243, in inner
return func(*args, **kwds)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 839, in __getitem_inner__
args = tuple(_type_check(arg, msg) for arg in args)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 839, in <genexpr>
args = tuple(_type_check(arg, msg) for arg in args)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 151, in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
TypeError: Callable[[arg, ...], result]: each arg must be a type. Got Ellipsis.
TypeError: Callable[[arg, ...], result]: each arg must be a type. Got Ellipsis.
还有一处忘记改了() 0.5.7.post1试试
TypeError: Callable[[arg, ...], result]: each arg must be a type. Got Ellipsis.
还有一处忘记改了() 0.5.7.post1试试
谢谢大佬,已经可以了,十分感谢!
加载最新版本的插件时出现错误。
问题重现:安装插件后,nonebot加载插件时出错
上个月也没出现问题,这次重装机器人后不知道出错了。