Skip to content

Docs: 修复 RegexMatched 文档类型标注错误#2629

Merged
yanyongyu merged 2 commits intononebot:masterfrom
A-kirami:docs/typing-match
Apr 4, 2024
Merged

Docs: 修复 RegexMatched 文档类型标注错误#2629
yanyongyu merged 2 commits intononebot:masterfrom
A-kirami:docs/typing-match

Conversation

@A-kirami
Copy link
Contributor

@A-kirami A-kirami commented Apr 4, 2024

from re import Match 在 python 3.8 中不可用,这会导致错误 TypeError: 'type' object is not subscriptable,应当从 typing 中导入 Match

image
image

@A-kirami A-kirami changed the title Docs: 修复 RegexMatched 文档类型标注错误 Docs: 修复 RegexMatched 文档类型标注错误 Apr 4, 2024
@yanyongyu yanyongyu added the documentation Improvements or additions to documentation label Apr 4, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2024

🚀 Deployed on https://deploy-preview-2629--nonebot2.netlify.app

@github-actions github-actions bot temporarily deployed to pull request April 4, 2024 08:09 Inactive
@yanyongyu yanyongyu merged commit 211ea84 into nonebot:master Apr 4, 2024
@A-kirami A-kirami deleted the docs/typing-match branch April 4, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Development

Successfully merging this pull request may close these issues.

2 participants