[Don't merge][CodeStyle][pyupgrade] automatically rewrite code with pyupgrade #48140
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 types
Others
PR changes
Others
Describe
https://github.com/asottile/pyupgrade
尝试使用 pyupgrade 以各种配置(
--py3-plus
、--py36-plus
、--py37-plus
)对全量代码格式化,目前只是测试可能的问题:动转静单测 case 不能重写的某些场景(不过目前还没发现相关 case)
--py3-plus
(495 文件)--py36-plus
(431 文件)--py37-plus
(0 文件)TODO:逐一查看需要 approve 的条目