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.
PR Category
User Experience
PR Types
Improvements
Description
_typing
模块的单元测试_typing.basic.py
以用于测试注:
此测试模块,不单是测试
_typing
模块,是整个type hint
单独的测试用例此处只添加了部分测试用例,可后续完善
后续可以在
test/_typing
中添加主测试用例,如test_<module>.py
test/_typing/<module>/pass
中添加通过的测试用例test/_typing/<module>/fail
中添加失败的用例(用# type: ignore[xxx]
可跳过的视为失败用例)test/_typing/<module>reveal
中添加推导的用例这里区分 module 的主要原因是,如果都放在一个测试文件中,timeout 可能会很大 ~
关联 PR #63597
p.s. 首次添加测试模块,可能需要先调试一下 ~
@SigureMo