GraiaProject / Ariadne

一个优雅且完备的 Python QQ 自动化框架,基于 Mirai API HTTP v2。 Powered by Graia Project.
https://graia.cn/ariadne
GNU Affero General Public License v3.0
753 stars 45 forks source link

[Bug] Ariadne.uploadFile 方法的 method 的推断错误 #100

Closed luxuncang closed 2 years ago

luxuncang commented 2 years ago

问题 Ariadne.uploadFile 方法的 method 的推断错误

如何复现

await app.uploadFile(data = f.read(), target = group, name='test.pdf')
# or
await app.uploadFile(data = f.read(), method = UploadMethod.Group, target = group, name='test.pdf')

预期行为 UploadMethod.__str__ 修饰

使用环境:

日志/截图 image