lgc-NB2Dev / nonebot-plugin-picstatus

运行状态图片版 for NoneBot2 / A NoneBot2 plugin generates a picture which shows the status of current device
MIT License
119 stars 11 forks source link

报错 #17

Closed KomoriDev closed 1 year ago

KomoriDev commented 1 year ago

https://github.com/lgc2333/nonebot-plugin-picstatus/blob/3852bfb37aad0035bdfe851bc10715e1deb00e46/nonebot_plugin_picstatus/draw.py#L342

its: List[Tuple[str, sdiskusage | Exception]] = disks.items()  # noqa

[str, sdiskusage | Exception] 中的 | 处发生报错

lgc2333 commented 1 year ago

草 又忘记照顾3.10以下版本py的用户了 这个语法是3.10以上独有的,稍等我一下

lgc2333 commented 1 year ago

好了,试试看0.3.1版本