A-kirami / nonebot-plugin-aidraw

nonebot2 AI 绘图
MIT License
77 stars 10 forks source link

🐛 修复 `DailyLimiter` 的属性类型注解不适用于 py3.8 的问题 #15

Closed A-kirami closed 2 years ago

A-kirami commented 2 years ago

这个 PR 带来了什么样的更改?

这个 PR 是否存在破坏性变更?

描述

修复类型注解与项目要求版本不匹配的问题

动机和背景

resolve #14

其他信息

检查工作

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 1.00 ⭐ 1.00 ⭐ 0.00
Method Length 28.17 ⭐ 28.17 ⭐ 0.00
Working memory 3.38 ⭐ 3.38 ⭐ 0.00
Quality 90.81% 90.81% 0.00%
Other metrics Before After Change
Lines 26 26 0
Changed files Quality Before Quality After Quality Change
nonebot_plugin_aidraw/limit.py 90.81% ⭐ 90.81% ⭐ 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!