Repository navigation
Remove: 移除 Python 3.10 支持 - #4219
Open
shoucandanghehe wants to merge 2 commits into
Open
shoucandanghehe wants to merge 2 commits into
shoucandanghehe wants to merge 2 commits into
Conversation
shoucandanghehe
marked this pull request as draft
October 13, 2026 15:50
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4219 +/- ##
==========================================
- Coverage 93.98% 93.91% -0.08%
==========================================
Files 49 49
Lines 4541 4534 -7
==========================================
- Hits 4268 4258 -10
- Misses 273 276 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
🚀 Deployed to https://deploy-preview-4219--nonebot2.netlify.app |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改内容
tomllib,移除tomli回退和直接依赖,以及不再使用的 Python 3.10 覆盖率规则。typing.Self和datetime.UTC,使用内置BaseExceptionGroup。uv.lock,移除仅旧 Python 版本需要的依赖和发行包记录,不升级现存依赖。兼容性说明
此改动不再支持 Python 3.10,用户需要升级至 Python 3.11 或更高版本。
仍保留
exceptiongroup:Python 3.11 的contextlib.suppress不支持异常组,生命周期退出仍使用其回移植实现。既有catch行为保持不变。仍保留
typing_extensions:Python 3.11 仍需要override、TypeAliasType;扩展版TypedDict的识别需要扩展版is_typeddict。CacheState保留原枚举格式,避免升级StrEnum改变已有缓存状态错误文本。验证
git diff --check通过。uv lock --check --python 3.11通过。参考