kexue-z / nonebot-plugin-dailysign

一个签到
MIT License
10 stars 3 forks source link

启动时出现报错 #6

Open aknyzsd opened 11 months ago

aknyzsd commented 11 months ago

image 不太明白,格式不对?我也没改什么东西啊qwq

kexue-z commented 11 months ago

用了py3.10的语法 加个Optional和 Unino

@.> 时间: 8月27日 (周日) 11:45 主题: [kexue-z/nonebot-plugin-dailysign] 启动时出现报错 (Issue #6) @.> @.***> [image: image]https://user-images.githubusercontent.com/121467598/263507098-c46e8cd7-67a1-4811-a5c3-2855cbc2fcd1.png

不太明白,格式不对?我也没改什么东西啊qwq — Reply to this email directly, view it on GitHubhttps://github.com/kexue-z/nonebot-plugin-dailysign/issues/6, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARELD2RYIEPEW7O4XINPZBLXXK7DNANCNFSM6AAAAAA4AAYUUA. You are receiving this because you are subscribed to this thread.[image: https://github.com/notifications/beacon/ARELD2W74HTOPTOFY6KBLBLXXK7DNA5CNFSM6AAAAAA4AAYUUCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHG6XFKUA.gif]Message ID: @.***>

aknyzsd commented 11 months ago

怎么做呢,求教qwq(没基础的铸币)

kexue-z commented 11 months ago

先导入typing

from typing import Union

然后把那个 | 运算改成 Union[A,B] 就行 A B 就是上图的那个东西

@.> 时间: 8月27日 (周日) 11:48 主题: Re: [kexue-z/nonebot-plugin-dailysign] 启动时出现报错 (Issue #6) @.> @.>, @.> 怎么做呢,求教qwq(没基础的铸币) — Reply to this email directly, view it on GitHubhttps://github.com/kexue-z/nonebot-plugin-dailysign/issues/6#issuecomment-1694561707, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARELD2VTWMNIWJYLDHSZLDLXXK7RTANCNFSM6AAAAAA4AAYUUA. You are receiving this because you commented.[image: https://github.com/notifications/beacon/ARELD2W2MXVQ5BSQXLMIWY3XXK7RTA5CNFSM6AAAAAA4AAYUUCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTFAD22W.gif]Message ID: @.***>

kexue-z commented 11 months ago

最简单的方法 升级py版本

aknyzsd commented 11 months ago

导不进去没有union.....? 没法升级啊有个插件只支持到3.9